是否可以导航到jupyter树中的父目录? [英] Is it possible to navigate to a parent directory in the jupyter tree?
问题描述
通常,我从一个新的bash终端启动jupyter:
Normally, I launch jupyter from a new bash terminal:
~$ jupyter notebook
,然后在树中向下导航到我要使用的文件.
and then navigate down the tree to the files I want to work at.
我只是从已经在其他路径上运行的终端上完成的:
I just did it from a terminal that was already running at a different path:
~/blah/blah/blah$ jupyter notebook
并意识到该目录成为jupyter的 home .我想处理位于~/blah/thingy/luis.ipynb
的文件,但找不到向上的方式.
and realized that that directory becomes the home for jupyter. I wanted to work at a file located at, say ~/blah/thingy/luis.ipynb
, but couldn't find my way up.
如何在jupyter笔记本中导航目录树向上?
How do I navigate the directory tree upwards in jupyter notebook?
推荐答案
如 https://github.com/ipython/ipython/issues/7751 ,出于安全原因,无法导航到父目录:
As explained in https://github.com/ipython/ipython/issues/7751, it is not possible to navigate to the parent directory for security reasons:
内核可能不是python,也可能不在同一台计算机上 服务器,也不需要运行的内核即可使用服务器API.
The kernel might not be python, nor on the same machine than the server, nor do you need a running kernel to use server API(s).
如果需要,可以在上述GitHub问题中寻求更多信息.
If you want, you can ask for more information in the aforementioned GitHub issue.
这篇关于是否可以导航到jupyter树中的父目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!