如何在VS代码中重新连接到现有的Jupyter笔记本电脑会话?
我记得我能够通过更改笔记本的内核来重新连接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:
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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想连接到现有的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.如果您看不到命令 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