jupyter notebook修改默认文件夹

1 首先通过cmd调出命令行窗口,输入jupyter notebook --generate-config

如下图:
jupyter notebook修改默认文件夹

2 打开显示的文件路径:C:\Users\wangm.jupyter\jupyter_notebook_config.py中的jupyter_notebook_config.py文件

jupyter notebook修改默认文件夹

3用编辑器打开py文件

搜索 notebook_dir关键词,找到这个位置:
jupyter notebook修改默认文件夹
修改路径,window系统文件路径为\,linx为/,并把#去掉,前面要加一个u,

4 重启jupyter notebook,可以看到文件路径已经修改