jupyterlab / jupyterlab-demo

Demonstrations of JupyterLab

Home Page:https://mybinder.org/v2/gh/jupyterlab/jupyterlab-demo/master?urlpath=lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bityob opened this issue · comments

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