设置 jupyter lab、jupyter notebook 的默认启动路径

方法一:修改启动参数

在cmd中,​输入“ipython notebook”或“jupyter notebook”打开notebook,此时cmd的当前路径即为notebook的工作路径

或者运行时添加参数:

方法二:修改配置文件

先生成配置文件:jupyter notebook --generate-config
根据显示的路径找到配置文件
找到 c.NotebookApp.notebook_dir
修改它的值为指定路径

注:路径的值要加引号!!!(一般是单引号)

原文地址:https://www.cnblogs.com/wbyixx/p/14199816.html