jupyter notebook 如何修改工作路径

时间:2021-04-19 07:06:09

1.cmd下输入jupyter notebook --generate-config,会显示jupyter_notebook_config.py的完整路径

打开jupyter_notebook_config.py,修改c.NotebookApp.notebook_dir为自己的目录

c.NotebookApp.notebook_dir = u'D:\\jupyter_workspace' 

2.点击jupyter快捷方式-->属性-->快捷方式,如下图:替换%USERPROFILE%和起始位置路径为工作路径:

jupyter notebook 如何修改工作路径

3.重启jupyter notebook