如何更改 jupyter notebook 和 jupyterlab 中的用户文件夹?

How to change Users folders in jupyter notebook and jupyterlab?

我对 jupyter notebook、jupyter lab 和 anaconda 有疑问?

有人知道如何将用户文件夹从用户 a 更改为 b 吗? 我的意思是我的 PC 中有 2 个用户,我想在 jupyter notebook 和 jupyterlab 中使用我的次要用户文件夹而不是我的主要用户文件夹。

谢谢

为每个用户创建自定义启动脚本。可以使用命令行参数为 jupyter lab 设置工作目录:

jupyterlab --NotebookApp.notebook_dir=<directory_name>

(或使用 Jupyter 配置)。

查看 post 的相关答案:(如何更改 Jupyter 启动文件夹)[