alathrop
12/23/2017 - 4:32 AM

jupyter config


# <https://stackoverflow.com/questions/35254852/how-to-change-jupyter-start-folder>

Use the jupyter notebook config file:

Open cmd (or Anaconda Prompt) and run jupyter notebook --generate-config.

This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.

Search for the following line: #c.NotebookApp.notebook_dir = ''

Replace by c.NotebookApp.notebook_dir = '/the/path/to/home/folder/'

Make sure you use forward slashes in your path and use /home/user/ instead of ~/ for your home directory,

and uncomment the line

# ~~~~~~~~

First try to run

 jupyter notebook --notebook-dir='C:\Your\Desired\Start\Directory\'

in a command line (cmd) to see if the Jupyter notebook opens at the desired location.

If yes, then you can make it a shortcut by:

    In a Windows File Explorer or on the desktop, Right click > New > Shortcut

    Enter the following location and click next:

 jupyter notebook --notebook-dir='C:\Your\Desired\Start\Directory\'

    Enter a name for your shortcut and finish

Now you have a shortcut to start Jupyter at the location you want. This works on Windows 7.