Ubuntu 16.04 modify jupyter default path

  • view the path to the configuration file
jupyter notebook --generate-config --allow-root 
  • modify the configuration file (enter I to edit normally)
vim 上一步看到的路径/.jupyter/jupyter_notebook_config.py

open jupyter_notebook_config.py and find the following text:

 
  1. ## The default URL to redirect to from `/`

  2. #c.NotebookApp.default_url = '/tree'

change it to:

 
  1. ## The default URL to redirect to from `/`

  2. c.NotebookApp.default_url = '/tree/Coding'

at this time, Jupyter’s default directory path becomes /home/Coding, namely Users/lab/Coding

then, open the terminal and type the following command directly:

jupyter notebook

Read More: