繁体   English   中英

使用VSCode连接到Jupyter实例

[英]Connecting to Jupyter Instance with VSCode

我有一个正在运行的Google深度学习VM,我建立了一个SSH隧道,当我导航到http:// localhost:8080时 ,我已连接到正在运行的Jupyter Lab实例。 运行命令sudo service jupyter status ,告诉我该服务正在正确运行。

现在,我想使用Visual Studio Code连接到Jupyter实例。 我尝试了[Ctrl] + [Shift] + [P]和“ Python:指定Jupyter服务器URI”,并在出现的提示中输入了http:// localhost:8080 但是,我收到一条错误消息:

Failed to connect to remote Jupyter notebook.
Check that the Jupyter Server URI setting has a valid running server specified.
http://localhost:8080/
Error: Failed to connect to password protected server. Check that password is correct.

不幸的是, 文档并没有说太多

有任何将VSCode连接到远程服务器的经验吗? 谢谢。

显然,您必须设置一个密码。 我按照此处的说明创建了哈希密码。 然后,我编辑了jupyter_notebook_config.py文件,并编辑了c.NotebookApp.password = '<my_super_secret_hash>' 最终,我可以连接VSCode。

暂无
暂无

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

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