GCP)从本地笔记本电脑断开 jupyter 会话后如何保持 jupyter 会话连接?
GCP) How to keep jupyter session connected after disconnecting jupyter session from my local laptop?
我在 GCP VM instance
tmux
上保持 jupyter server
运行ning。
但问题是我想在离开 jupyter server
本地笔记本电脑
会话后继续拟合我的模型
(例如,我关闭了我的笔记本电脑,但 jupyter 会话仍然存在,适合模型,并且我能够重新连接该会话以检查状态)。
我想到的唯一方法是使用 ~.py
并执行 $python3 fitting.py
,但我想 运行 并在 jupyter notebook 上拟合模型以监控避免添加额外代码。
如果有可行的方法,请教教我。
谢谢!
您是否考虑过使用 Fairing library? It comes pre-installed with GCP's new AI Platform Notebooks。
此库允许您打包笔记本并将其发送出去以进行远程执行。一个新笔记本将执行的内容保存到您的 GCP 存储桶中。启动笔记本后无需有效的互联网连接 运行。
您可以通过创建一个新的 GCP AI Platform Notebook and looking at the tutorials folder inside it. You can also find additional tutorials for Fairing here
来学习如何使用它
我在 GCP VM instance
tmux
上保持 jupyter server
运行ning。
但问题是我想在离开 jupyter server
本地笔记本电脑
(例如,我关闭了我的笔记本电脑,但 jupyter 会话仍然存在,适合模型,并且我能够重新连接该会话以检查状态)。
我想到的唯一方法是使用 ~.py
并执行 $python3 fitting.py
,但我想 运行 并在 jupyter notebook 上拟合模型以监控避免添加额外代码。
如果有可行的方法,请教教我。 谢谢!
您是否考虑过使用 Fairing library? It comes pre-installed with GCP's new AI Platform Notebooks。
此库允许您打包笔记本并将其发送出去以进行远程执行。一个新笔记本将执行的内容保存到您的 GCP 存储桶中。启动笔记本后无需有效的互联网连接 运行。
您可以通过创建一个新的 GCP AI Platform Notebook and looking at the tutorials folder inside it. You can also find additional tutorials for Fairing here
来学习如何使用它