kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 95 forks source link

Nbdime error on Windows with nbstripout #115

Closed fcollonval closed 4 years ago

fcollonval commented 4 years ago

Hey,

We got an issue reported in https://github.com/jupyterlab/jupyterlab-git/issues/471#issuecomment-574326817 when using nbstripout and nbdime on Windows.

I was able to reproduce that issue on the following system:

Digging into that issue, nbdime finds out the filter applied on the notebook by querying the git config command. Then it applies the obtained command on the file before processing with the diff operation.

On Windows, git uses a unix shell. But nbdime with that logic uses the native shell of the OS. And in the particular case of nbstripout, it is failing.

The error raises due to the use of single quote in https://github.com/kynan/nbstripout/blob/df6a925b34b067e5ff8a01329a78c86e7f2181a3/nbstripout/_nbstripout.py#L138

Using double quote " removes the error.

jamesjnadeau commented 4 years ago

@kynan Any chance of this getting merged in the near future?

kynan commented 4 years ago

Sorry for the slow response. This will go out in 0.3.8