如何在VS代码中重新连接到现有的Jupyter笔记本电脑会话?

发布于 2025-02-10 13:56:24 字数 493 浏览 0 评论 0原文

我记得我能够通过更改笔记本的内核来重新连接VS代码中现有的Jupyter笔记本电脑会话。现在,重新连接到现有会话的选项已经消失,请参见:

“更改内核菜单”

如何在VS代码中重新连接到现有的Jupyter Notebook会话?

需要明确的是,会议永远不会关闭。实际上,我仍然可以看到它们在我浏览器版本的jupyter笔记本的运行选项卡中运行,尽管单击它们会导致404错误:

​在远程服务器上。我在工作时使用SSH会话将其连接到它。

当前版本:VS代码为V1.68.1,远程计算机上的Jupyter扩展名为V2022.5.1001601848,如果有帮助。

I remember I was able to reconnect to an existing Jupyter Notebook session in VS code before by changing the kernel for a notebook. Now the option to reconnect to an existing session is gone, see:

change kernel menu

How do I reconnect to an existing Jupyter Notebook session in VS code?

To be clear, the sessions were never shut down. In fact, I can still see them running in the Running tab of my browser version of Jupyter Notebook, although clicking on them results in a 404 error:

jupyter notebook Running tab

The Jupyter kernel is running on a remote server. I use an SSH session to connect back to it when I work.

Current versions: VS code is v1.68.1 and the Jupyter extension on the remote machine is v2022.5.1001601848, if that helps.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

满意归宿 2025-02-17 13:56:24

如果您想连接到现有的jupyter服务器,您可以通过进入命令jupyter:为连接指定jupyter服务器 并从列表中选择适当的远程服务器。如果所需的服务器不在该列表上,则可以选择它。

If you would like to connect to an existing jupyter server can you do so by going into the command Jupyter: Specify Jupyter Server for Connections and selecting the appropriate remote server from the list. If the required server is not on that list, then you can select it.

一人独醉 2025-02-17 13:56:24

如果您看不到命令​​ jupyter:指定连接的jupyter服务器

则可以按照以下步骤操作:

选择内核 - >选择另一个内核... - >现有的Jupyter服务器...->输入运行jupyter服务器的URL

If you cannot see the command Jupyter: Specify Jupyter Server for Connections

You can follow the steps:

Select Kernel -> Select Another Kernel... -> Existing Jupyter Server... -> Enter the URL of the running Jupyter server

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文