- 查看Jupyter使用的配置文件在哪个目录:
cmd: jupyter --config-dir
- 切换到当面的目录下,查看否存在配置文件:jupyter_notebook_config.py。如果不存在使用以下命令创建:
jupyter notebook --generate-config
- 在配置文件jupyter_notebook_config.py中,添加配置内容:
c.NotebookApp.notebook_dir = ‘工作空间地址’
- 最后一步,点击Jupyter Notebook快捷方式,右键->属性->目标,删掉最后的"%USERPROFILE%",并应用。