简体   繁体   English

打开涉及 jupyter notebooks 的存储库时如何设置项目根文件夹

[英]how to set a project root folder when opening a repository involving jupyter notebooks

Is it possible to set a project folder as root path when opening it in jupyter notebook or jupyter lab?在 jupyter notebook 或 jupyter lab 中打开项目文件夹时,是否可以将项目文件夹设置为根路径? so that if someone wants to replicate a project, they don't have to change manually the paths in the different jupyter notebooks.这样如果有人想要复制一个项目,他们就不必手动更改不同 jupyter notebook 中的路径。 Now what I do is I open the terminal on the project path, I initialize the corresponding environment, and then initialize jupyter lab.现在我要做的就是在项目路径上打开终端,初始化相应的环境,然后初始化jupyter lab。 But that doesn't set any root path on the notebooks, because the path is just the notebook path and there are different folders with notebooks in the project.但这不会在笔记本上设置任何根路径,因为该路径只是笔记本路径,并且项目中有不同的笔记本文件夹。

Thanks!谢谢!

遗憾的是,出于安全原因,无法从 Jupyter 笔记本访问父目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM