1、打开 cmd 输入命令 jupyter notebook --generate-config。可以看到生成文件的路径,这个就是生成的配置文件:jupyter_notebook_config.py。
2.打开后找到 找到#c.NotebookApp.notebook_dir =’’,删掉开头的"#",在’'中输入你要启动的目录路径,保存。一定要是\\
c.NotebookApp.notebook_dir = ‘C:\\Users\凉迹\\Desktop\\jupyter-notebook\\data_analyze’
3.打开jupyter notebook 快捷方式的位置,右击 属性 修改目标。去掉最后的 “%USERPROFILE%/”
4.重新启动 jupyter notebook