jupyter notebook 默认路径修改分为如下两个步骤:
- 1)windows+R 输入cmd ,
cmd中输入 jupyter notebook --generate-config
回车,可以查看 jupyter_notebook_config.py 的文件目录,一般为C:\Users\username.jupyter
也打开Anaconda Prompt
jupyter notebook --generate-config
- 2)打开文件夹目录
编辑 jupyter_notebook_config.py,搜索 notebook_dir,
找到行#c.NotebookApp.notebook_dir = u’’,
删除#,
并输入要打开的文件目录
如替换为 c.NotebookApp.notebook_dir = u’D:\workspace\Jupyter’
或者替换为c.NotebookApp.notebook_dir = ‘D:/workspace/Jupyter’
注意“\”和“/”