How to change the Jupyter Lab start-up folder
Use the jupyter notebook config file:
Open the command line (or Anaconda Prompt) and run:
jupyter notebook --generate-config.
This will create a jupyter_notebook_config.py file in the .jupyter directory, with all the defaults commented out.:
C:\Users\"YourUserName"\.jupyter\jupyter_notebook_config.py.
Browse to the file location and open it in an Editor
Search for the following line in the file and remove the # at the beginning of the line to allow the line to execute.
Jupyter Lab is:
#c.ServerApp.notebook_dir = ''
or Jupyter Notebook is:
#c.NotebookApp.notebook_dir = ''
Replace by
c.ServerApp.notebook_dir = '/the/path/to/home/folder/'
We Make sure you use forward slashes in your path and use /home/user/ instead of ~/ for your home directory on Linux, backslashes could be used if placed in double quotes even if the folder name contains spaces as such: “D:\yourUserName\Any Folder\More Folders\” or without double quotes D:\YourUserName\AnyFolder\More Folders\ on windows.
We create a video with the example:
Option 2:
We using windows 10 (64 bit) with Anaconda2. In the start menu, right click
Jupyter Notebook -> Properties.
In the Target field, change
%USERPROFILE%
to your new
"D:\path".