记原来的默认启动页太乱,修改jupyter notebook的启动目录


(附上参考链接:https://blog.****.net/weixin_40807247/article/details/82262040)

步骤1:jupyter_notebook_config.py 的文件

打开命令行( win+R,输入cmd,然后按回车键 ),输入:
jupyter notebook --generate-config
记原来的默认启动页太乱,修改jupyter notebook的启动目录
此时会生成一个 jupyter_notebook_config.py 的文件路径,按这个路径找到jupyter_notebook_config.py 文件

步骤2:修改 jupyter_notebook_config.py 文件中的启动路径

打开 jupyter_notebook_config.py 文件,找到
1 ## The directory to use for notebooks and kernels.
2 #c.NotebookApp.notebook_dir = ‘’ "
将要指定的路径填入 #c.NotebookApp.notebook_dir = ’ ’ 中的 ’ ’ 中,同时将#c.Notebook中的"#"删 除(去掉注释)。
记原来的默认启动页太乱,修改jupyter notebook的启动目录

步骤3:验证

在命令行中输入jupyter-notebook.exe
记原来的默认启动页太乱,修改jupyter notebook的启动目录
效果如下:
记原来的默认启动页太乱,修改jupyter notebook的启动目录