Jupyter notebook修改默认启动目录

本文讲述windows下修改Jupyter notebook默认启动目录

前提:已经安装jupyter notebook

1.在cmd下使用命令jupyter notebook --generate-config来查看你的notebook配置文件在哪里

jupyter notebook --generate-config

2.根据自己的实际路径进入.jupyter目录

3.提前创建一个你要启动的目录,本人在D盘下创建一个Jupyter Code目录

4.打开jupyter_notebook_config.py文件,使用Ctrl+F进行查找    c.NotebookApp.notebook_dir   将其前面的 # 去掉,后面添加自己刚刚创建的目录

如图:

 5.重新启动jupyter notebook发现启动目录已修改

猜你喜欢

转载自blog.csdn.net/ITYTI/article/details/85108448