Anaconda Prompt控制台一打开的默认路径在C: Users Administrator 每次总需要cd到自己的工作路径
![500c32cc872f1b4e494e3485d6df3ca8.png](https://img-blog.csdnimg.cn/img_convert/500c32cc872f1b4e494e3485d6df3ca8.png)
![cb0581860b241f4d21b8b08169930555.png](https://img-blog.csdnimg.cn/img_convert/cb0581860b241f4d21b8b08169930555.png)
为了避免重复动作,需要将路径改到自己的工作路径。如图
cmd 中输入jupyter notebook --generate-config 出现jupyter_notebook_config.py的工作路径
![b5fd56f83f1e64311ef1aead16f97ebe.png](https://img-blog.csdnimg.cn/img_convert/b5fd56f83f1e64311ef1aead16f97ebe.png)
打开 jupyter_notebook_config.py ,将c.NotebookApp.notebook_dir = ''改成
c.NotebookApp.notebook_dir &