天天看点

修改jupyter notebook打开文件的默认路径

jupyter notebook是装anaconda带的。

首先运行Anaconda Prompt

修改jupyter notebook打开文件的默认路径

输入下列语句

jupyter notebook --generate-config
           
修改jupyter notebook打开文件的默认路径

通过给定路径找到jupyter_notebook_config.py文件,并用任意编辑器打开(我用的是pycharm)

修改jupyter notebook打开文件的默认路径

找到下面两行,取消掉第二行的注释,在引号里写上新的地址,保存文件

修改jupyter notebook打开文件的默认路径
修改jupyter notebook打开文件的默认路径

大功告成