首页 > 解决方案 > 双击打开已经运行的 jupyter lab 的 .ipynb

问题描述

我想出了如何通过双击打开一个带有 jupyter lab 的 ipython notebook。~/.local/share/applications我在(Ubuntu 20.04)创建了文件

[Desktop Entry]
Type=Application
Version=1.0
Name=Jupyter-lab
# This is for opening files, not launching the notebook from a menu
NoDisplay=true
Exec=/path_to_python/bin/jupyter-lab %f
Terminal=false

但是如果我打开多个这样的文件,每个文件都会创建自己的具有不同端口的浏览器选项卡/服务器。我想要的是所有 ipython 笔记本在同一个 jupyter 实验室服务器上作为多个选项卡打开(在 jupyter 实验室中而不是在 web 浏览器中)。可以做到吗?

提前致谢。

标签: ubuntujupyter-notebookjupyterjupyter-lab

解决方案


推荐阅读