配置Anaconda中jupyter notebook路径

1、在开始菜单找到 Anaconda 下面的Anacoda Prompt 打开
配置Anaconda中jupyter notebook路径

2、在类似于控制台的界面输入: jupyter notebook –generate-config,(generate前面两个-)回车 y 回车
配置Anaconda中jupyter notebook路径
3、复制2生成的路径: Writing default config to: 后面的路径
配置Anaconda中jupyter notebook路径
用记事本打开 jupyter_notebook_config.py文件

4、在打开的jupyter_notebook_config.py中,找到 #c.NotebookApp.notebook_dir = ” ,并将其修改为: c.NotebookApp.notebook_dir = ‘你想要的路径’ 。 我的路径是’D:\ai study\demo’
配置Anaconda中jupyter notebook路径
配置Anaconda中jupyter notebook路径

5、打开Jupyter Notebook的启动快捷方式中的属性,将目标中的路径的最后面的 %USERPROFILE% 删掉,并按确认键退出。
6、重启即可

7、出现bug
配置Anaconda中jupyter notebook路径
原因是 在配置文件里面的路径使用了单个\ 应该是双\
配置Anaconda中jupyter notebook路径

重启打开 即可