在 EC2 实例上运行 jupyter 笔记本
我在我的 AWS 账户上设置了一个 cloud 9 实例。我使用诗歌作为我的包管理器并安装了 jupyter 笔记本。
当我运行命令poetry run jupyter notebook
时,它会像平常一样运行,但是当我按下链接时,他们说无法访问该网站。
我注意到的一些事情是,在一些 AWS 文档中提到使用端口 8080,我已经尝试过,但它不起作用。
我还看到一些关于 http 与 https 的信息,那么是否会因为链接不是 https 而不会显示?
无论如何,有关如何打开在云 9 实例上运行的笔记本的任何帮助都会非常有帮助,谢谢
I have a cloud 9 instance set up on my AWS account. I am using poetry as my package manager and have installed jupyter notebook.
When I run the command poetry run jupyter notebook
it runs as it usually does, but when I press the links they say that the site can't be reached.
Some things I have noticed is that in some AWS documentation there is mention of using port 8080, I have tried that but it doesn't work.
I also see something about http vs https, so could it be that it won't display because the link is not https?
Regardless any help on how to open up a notebook running on the cloud 9 instance would be very helpful, thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想通过 HTTP 访问笔记本:
请点击
http://public-ip-address:8888
并使用您指定的密码登录。如果您想通过 HTTPS(使用自签名证书)访问笔记本:
然后点击
https://public-ip-address:8888
并使用您指定的密码登录。无论哪种情况,请确保 EC2 安全组和网络 ACL 中允许端口
8888
。If you want to access the notebook over HTTP:
then hit
http://public-ip-address:8888
and login with the password you specified.If you want to access the notebook over HTTPS (with a self-signed certificate):
then hit
https://public-ip-address:8888
and login with the password you specified.In either case, make sure that port
8888
is allowed in the EC2 security group and network ACL.