- 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:
-
## The default URL to redirect to from `/`
-
#c.NotebookApp.default_url = '/tree'
p>
change it to:
-
## The default URL to redirect to from `/`
-
c.NotebookApp.default_url = '/tree/Coding'
p>
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