I tried following the instructions given on the Jupyter Notebook documentation.
Unfortunately, I haven't been able to figure it out. Where exactly is this "start in" field?
I've a windows 7 (64 bit) system, with Anaconda3 installed (not in C drive). I want to change Jupyter start folder location.
cd
into the directory or a parent directory (with the intended directory you will work nested in it).
Note it must be a folder (E:\>
--- This will not work)
Then just run the command jupyter notebook
This is great for exception cases; I don't want to change
c.NotebookApp.notebook_dir
property ofjupyter_notebook_config
, nor do I want to changeStart in
property of theJupyter (windows shortcut)
, I just want to launch Jupyter once or twice in a specific directory; justcd
there (or see @DRozen's answer)This is most appropriate, working directory can be changed as and when required!!
Worth mentioning that this always works when done in Anaconda prompt - not everyone has access to conda commands via
cmd
.IMPORTANT: After the typical nbconfig setup, also remove
%USERPROFILE%
from your Jupyter Notebook shortcut Target field.@TheRedPea - changing the config option for c.NotebookApp.notebook_dir doesn't seem to actually change the working directory. It displays the tree in the Jupyter interface as rooted to what dir I set, but the actually notebook still seems to use the same root. For instance, all my import statements still use the old root, even after setting c.NotebookApp.notebook_dir