更改jupyter-notebook的启动时的默认目录

来源:互联网 发布:算法设计与分析 沙特 编辑:程序博客网 时间:2024/05/29 11:35

更改jupyter-notebook启动时的默认目录


1.打开 cmd ,输入命令 jupyter notebook --generate-config,将生成 jupyter_notebook_config.py文件

2.在C:\Users\Administrator\.jupyter 中的文件找到文件 jupyter_notebook_config.py

3.用记事本打开找到 # The directory to use for notebooks and kernels.
修改这一句c.NotebookApp.notebook_dir = u' 

c.NotebookApp.notebook_dir = u'E:\\jupyternotebook'


注:将#号删除,路径是\\双斜线 ,E:\\jupyternotebook为自己想要设置的目录


0 0