[英]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.