简体   繁体   English

如何让 jupyter kernel 在 vscode 远程容器中保持活力?

[英]how to keep jupyter kernel alive inside vscode remote container?

Question:问题:

How can I disconnect, then reconnect to a vscode dev container without killing the ipynb kernel within my workspace?如何断开连接,然后重新连接到 vscode 开发容器,而不杀死工作区中的 ipynb kernel?

Background:背景:

I access my jupyter notebook inside a vscode dev container in order to have reproducibility of my project-specific environment.我在vscode 开发容器中访问我的 jupyter 笔记本,以便重现我的项目特定环境。 I connect to the container host machine on my laptop.我连接到笔记本电脑上的容器主机。 Upon re-opening my vscode workspace after reconnecting to the container, my ipynb kernel is dead and all notebook computation must be repeated.在重新连接到容器后重新打开我的 vscode 工作区后,我的 ipynb kernel 已死,必须重复所有笔记本计算。

Although this虽然这

Try to use jupyter server instead.尝试改用jupyter server

You can refer to this issue aout using the 'remote' server to control your kernel lifetime for details.您可以参考此问题aout 使用“远程”服务器来控制您的 kernel 生命周期以了解详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM