- 打开Anaconda Prompt
- 输入
C:\Users\Admin>jupyter notebook --generate-config
显示
Writing default config to: C:\Users\Admin\.jupyter\jupyter_notebook_config.py
找到该位置C:\Users\Admin\.jupyter
,打开jupyter_notebook_config.py
,搜索dir
,找到
## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = '#'
- 修改为
c.NotebookApp.notebook_dir = 'E:\Jupyter'
,记得去掉前面的# - 检查是否修改成功:在Anaconda Prompt输入
jupyter notebook
,
Serving notebooks from local directory: E:\Jupyter
有这句话即成功。