linux - 在 AWS 上修复 jupyter notebook
问题描述
我正在尝试设置 jupyter notebook 以在 AWS 上运行,我遵循了本指南 - https://medium.com/@alexjsanchez/python-3-notebooks-on-aws-ec2-in-15-mostly-简单步骤 2ec5e662c6c6。
它有效,但我现在意识到,每次我在本地机器上启动 jupyter 时,它都会要求输入密码,而且保存的密码也不再有效地将我锁定在 jupyter 之外:
我推测它是因为我设置了到端口 8888 的 ssh 连接,这是 jupyter 默认使用的。但是,我在第 10 步中删除了 ssh 配置文件,但没有更改。
我很困惑为什么 jupyter 不再正确启动,有人对我如何纠正这个有任何想法吗?
我还注意到从 EC2 实例启动 jupyter 时会给出一个令牌
但在我的情况下,没有给出
#Launching jupyter in notebook from EC2 enviornment
(base) [ec2-user@ip-172-31-59-151 ~]$ jupyter lab --no-browser
[I 14:49:49.917 LabApp] JupyterLab extension loaded from /home/ec2-user/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 14:49:49.917 LabApp] JupyterLab application directory is /home/ec2-user/anaconda3/share/jupyter/lab
[I 14:49:49.919 LabApp] Serving notebooks from local directory: /home/ec2-user
[I 14:49:49.919 LabApp] Jupyter Notebook 6.1.4 is running at:
[I 14:49:49.919 LabApp] http://localhost:8888/
[I 14:49:49.920 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
解决方案
推荐阅读
- powershell - Microsoft Word power shell 脚本跳过所有已删除的修订行/段落
- javascript - 如何通过正则表达式模式创建存储迭代器
- python - 如何按列分组并将重复值作为 1 并将原始值作为 0
- html - 试图了解在用于浮动的 clearfix 解决方案中使用“显示”属性的原因?
- javascript - Electron ipcMain & ipcRenderer 无法相互通信
- jboss - JBOSS-CICS交互调用Mainframe——资源适配器部署方式
- sql - 在 Oracle SQL 中将带有 YY 的 DATETIME 转换为带有 YYYY 的 DATE
- typescript - 打字稿错误?已知类型转换为未知作为参数
- django - 使用来自模型属性的数据返回响应时出现AttributeError?
- azure - 术语“Connect-PartnerCenter”未被识别为 cmdlet、函数、脚本的名称