ubuntu 16.04 修改jupyter默认路径

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kaien1226/article/details/81480368
  • 查看配置文件的路径
jupyter notebook --generate-config --allow-root 
  • 修改配置文件(输入i以后就可以正常进行编辑)
vim 上一步看到的路径/.jupyter/jupyter_notebook_config.py

打开jupyter_notebook_config.py,找到如下文字:

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

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

将其修改为:

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

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

此时,Jupyter notebook的默认目录路径就变成了/home/Coding, 即Users/lab/Coding

然后,打开终端直接输下列命令就好:

jupyter notebook

猜你喜欢

转载自blog.csdn.net/kaien1226/article/details/81480368