美文网首页Python学习笔记
Jupyter notebook修改默认工作目录的方法

Jupyter notebook修改默认工作目录的方法

作者: LeafMa | 来源:发表于2021-01-21 19:52 被阅读0次

1.打开Anaconda--Environments--base--open terminal

2、>jupyter notebook --generate-config回车

3、找到jupyter_notebook_config.py文件并打开,搜索dir,找到以下内容:## The directory to use for notebooks and kernels.#c.NotebookApp.notebook_dir = r'E:' 去掉前面的#号,并把E:修改为自己想要设置的目录并保存即可。

4、重新运行jupyter notebook,默认目录修改成功。

相关文章

网友评论

    本文标题:Jupyter notebook修改默认工作目录的方法

    本文链接:https://www.haomeiwen.com/subject/jxeezktx.html