How to change the Jupyter Lab start-up folder
Use the jupyter notebook config file:
Open 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.:
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 = ''
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 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: