打开cmd,执行
jupyter notebook --generate-config
将在当前路径下生成一个文件: jupyter_notebook_config.py
C:\Users\sheng> jupyter notebook --generate-config Writing default config to: C:\Users\sheng\.jupyter\jupyter_notebook_config.py
打开文件,找到如下部分:
## The directory to use for notebooks and kernels. #c.NotebookApp.notebook_dir = ‘‘
去掉注释,修改为指定的路径,如:
## The directory to use for notebooks and kernels. c.NotebookApp.notebook_dir = u‘E:\\jupyternotebook‘
重新启动jupyter即可。
原文地址:https://www.cnblogs.com/see2802/p/9809800.html
时间: 2024-11-29 10:55:00