文章目录
[Win + r] 打开cmd
>>>jupyter notebook --generate-config
# 下面这行没有出现就不用管
Overwrite C:\Users\Fred-\.jupyter\jupyter_notebook_config.py with default config? [y/N]y
# 这里会出现一个配置文件的位置
Writing default config to: C:\Users\Fred-\.jupyter\jupyter_notebook_config.py
打开配置文件 jupyter_notebook_config.py
Ctrl + f 搜索关键词 “notebook_dir”
# 找到这个,进行修改
## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''
# 修改之后
## The directory to use for notebooks and kernels.
c.NotebookApp<