在Sagemaker本地连接Jupyter



当我在Sagemaker上的Jupyterlab中运行%connect_info时,我会得到会话信息。和

{"shell_port": ,
"iopub_port": ,
"stdin_port": ,
"control_port": ,
"hb_port": ,
"ip": "",
"key": "",
"transport": "",
"signature_scheme": "",
"kernel_name": ""}
Paste the above JSON into a file, and connect with:
$> jupyter <app> --existing <file>
or, if you are local, you can connect with just:
$> jupyter <app> --existing kernel-052ed888-e682-4786-aa4c-cdb19c6145bf.json
or even just:
$> jupyter <app> --existing
if this is the most recent Jupyter kernel you have started.

但是当我对保存的文本文件运行Jupiter语句时,它没有连接。

有时,将我的本地VS代码应用程序连接到我的笔记本电脑上会很方便,而不是在浏览器中开发。

欢迎提出任何建议。

在SageMaker上本地构建的推荐方法是使用SageMaker Python SDK。请参阅此处的示例-https://aws.amazon.com/blogs/machine-learning/run-your-tensorflow-job-on-amazon-sagemaker-with-a-pycharm-ide/

最新更新