jupyter lab 默认的工作目录是安装位置,如果想更改到其他盘,则在终端使用命令:jupyter lab –generate-config
会显示出jupyter lab的配置文件位置,此时找到工作目录位置,改到自己想存储的位置即可。
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'E:\Workspaces\jupyterLab'
重新打开Jupyter lab, 享受修改后的新目录吧!