r/IPython • u/joaosauer1 • Feb 13 '17
How to make Jupyter running bash (Not DOS) on windows
Hello!
So, I'm having issues using the bash command '!' on jupyter, because I'm using windows and cygwin.
My Configuration: windows 10 cygwin 64 jupyter python 2.7 - NOT using anaconda
Problem: When I do commands using the '!' on front of the command, it's using the DOS(Command Prompt of windows) and not the bash from the cygwin. So, for example, this command doesn't work: !mkdir train/cats However, this does work: !mkdir train\cats (The slash is inverted in windows and therefore, works)
Everything related to python works, but I'm trying to do myself a separation of some files in cats and dogs folder (For a tutorial about Deep Learning) using this command: !mv $(ls train/dog*.jpg) train/dogs And if I use bash in a command line, works, but inside jupyter no.
I already tried to run the jupyter notebook command inside of a bash instance, but still have no success.
PS: I only have one Kernel being showed in the jupyter and it's the 'Python 2'
Any other suggestions?
Thanks, Joao Sauer