You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Call from nbdime
subprocess.CalledProcessError: Command ''C:/Users/freud/Anaconda3/envs/jlab/python.exe' -m nbstripout' returned non-zero exit status 1.
Call executed directly in Windows shell:
(jlab) ...\jupyterlab-git\examples>'C:/Users/freud/Anaconda3/envs/jlab/python.exe' -m nbstripout < demo.ipynb
''C:' is not recognized as valid command
The error raises due to the use of single quote in
Hey,
We got an issue reported in jupyterlab/jupyterlab-git#471 (comment) 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 thegit 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
nbstripout/nbstripout/_nbstripout.py
Line 138 in df6a925
Using double quote
"
removes the error.The text was updated successfully, but these errors were encountered: