[英]Connect locally to Jupyter in Sagemaker
當我在 Sagemaker 上的 Jupyterlab 中運行%connect_info
時,我得到 session 信息。 和
{"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-與-a-pycharm-ide/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.