繁体   English   中英

使用 aws cli 运行 sagemaker jupyter notebook

[英]Run sagemaker jupyter notebook using aws cli

我在 aws sagemaker 中有一个“笔记本实例”,这个实例有很多笔记本。

有什么方法可以使用 aws cli(shell)单独启动笔记本并检查它们的当前状态(运行、停止等)?

如果没有,我可以使用哪些方法以编程方式执行上述操作?

您可以使用命令查看 sagemaker notebook 实例的状态

  • $ aws sagemaker describe-notebook-instance --notebook-instance-name your_instance_name

这将返回有关实例的详细信息。

要从 aws cli 启动笔记本,请使用以下命令

  • $ aws sagemaker create-presigned-notebook-instance-url --notebook-instance-name your_instance_name

以上命令会返回jupyter notebook的url,复制粘贴到浏览器中。

如需更多帮助,请参阅

https://docs.aws.amazon.com/cli/latest/reference/sagemaker/create-presigned-notebook-instance-url.htmlhttps://docs.aws.amazon.com/sagemaker/latest/dg/ howitworks-access-ws.html

暂无
暂无

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

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