上一篇Jupyter的文章:https://www.cnblogs.com/dotnetcrazy/p/9201976.html
Linux
生成配置文件:jupyter-notebook --generate-config
打开配置文件:(没有装vscode的可以用gedit或者vi打开)
code ~/.jupyter/jupyter_notebook_config.py
设置默认路径:(建议使用绝对路径,~在配置中代表默认工作区,如果不是第一次设置容易出错)
c.NotebookApp.notebook_dir = '/home/dnt/桌面/work'

效果:

其实这种方式也可以,你可以自己摸索下:

Windows
win下基本上一样,就是注意一点:快捷方式后面的参数去掉

Path:C:\Users\用户名\.jupyter\jupyter_notebook_config.py
eg:c.NotebookApp.notebook_dir = 'D:/Works'