我如何获得当前的IPython / Jupyter Notebook名称

问题描述 投票:65回答:6

运行IPython笔记本时,我试图获取当前的笔记本名称。我知道我可以在笔记本顶部看到它。我喜欢的东西]

currentNotebook = IPython.foo.bar.notebookname()

我需要在变量中获取名称。

python jupyter-notebook ipython jupyter jupyter-lab
6个回答
25
投票

36
投票

29
投票

26
投票

17
投票

1
投票
© www.soinside.com 2019 - 2024. All rights reserved.