小编给大家分享一下修改jupyter工作路径的方法,相信大部分人都还不怎么了解,因此分享这边文章给大家学习,希望大家阅读完这篇文章后大所收获,下面让我们一起去学习方法吧!

修改Jupyter工作目录的方法:

1、使用jupyter notebook --generate-config指令获取当前Jupyter路径

(yankerp)Administrator@MZNOQLGC1WJQ0RTC:\Users\Administrator#jupyternotebook--generate-configWritingdefaultconfigto:C:\Users\Administrator\.jupyter\jupyter_notebook_config.py

目前的路径在C:\Users\Administrator.jupyter\jupyter_notebook_config.py

2、打开jupyter_notebook_config文件

打开文件找到c.NotebookAppxxxx定义 Jupyter notebook工作路径如下:

c.NotebookApp.notebook_dir='C:\\Jupyter-yankerp\jupyter'

在上面的C:\Jupyter-yankerp\jupyter目录需要提前创建

修改c.NotebookApp.notebook_dir中的路径即可。

以上是修改jupyter工作路径的方法的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!