jupyterlab / jupyterlab-demo

Demonstrations of JupyterLab
https://mybinder.org/v2/gh/jupyterlab/jupyterlab-demo/master?urlpath=lab
Other
184 stars 242 forks source link

'touch' is not recognized as an internal or external command, operable program or batch file. #65

Closed bityob closed 1 year ago

bityob commented 6 years ago

Running on Windows -

(base) C:\Code\jupyterlab-demo>invoke demofiles
cleaning demofiles
creating demofolder
cloning repos into demo folder demofiles
Cloning into 'PythonDataScienceHandbook'...
Cloning into 'Urban-Data-Challenge'...
Cloning into 'altair'...
Cloning into 'QuantEcon.notebooks'...
Cloning into 'TCGA'...
Cloning into 'TensorFlow-Examples'...
Cloning into 'bqplot'...
'touch' is not recognized as an internal or external command,
operable program or batch file.

It happens because this line: ctx.run('touch move_this_file.txt; mkdir move_it_here')

'touch' program, doesn't exists in Windows, that why it fails.

Maybe, the code can be updated to check if it is Windows, and run equivalent command, like: type nul > move_this_file.txt

The same way the code does for rmdir.

Thanks