VS Code Jupyter 扩展:远程笔记本无法启动

fis*_*hor 7 python jupyter visual-studio-code jupyter-notebook

我正在尝试使用 VS Code Jupyter 扩展连接到远程 Jupyter 笔记本。

使用CMD + Shift + P->Jupyter: Enter the URL of local/remote Jupyter notebook会出现一个输入字段,我在其中输入笔记本的地址。之后会显示一个要求令牌的输入字段。当我输入令牌并按 时Enter,没有任何反应。

我尝试使用 VS Code for MacOS 和 Linux Mint 进行连接。使用托管localhost:8888在我的家庭网络中的另一台计算机上的笔记本和托管的笔记本192.168.0.11:8888。两种方式都行不通。

我可以通过浏览器访问 Jupyter 笔记本。

当我使用已jupyter安装的 Python 环境在每个命令行启动 VS Code 时,我还能够(纯粹)在 VS Code 中运行笔记本。如果我没有在jupyter安装了 Python 的环境中启动 VS Code ,我将无法运行任何笔记本(但这似乎是一个已知问题)。

如何解决此问题(连接到远程笔记本)?

有人能够连接到远程笔记本吗?(如果是,如何?)

小智 -2

我遇到的问题如下

command 'jupyter.selectExistingNotebook' not found
Run Code Online (Sandbox Code Playgroud)

我在 vscode 上安装了 Jupyter 扩展。按照说明进行操作:服务器/Docker 上的远程 Jupyter 内核

尝试连接到在服务器上或 Docker 容器内运行的远程 Jupyter 内核:

启动远程 Jupyter Notebook 或 headless KernelGateway

在 Jupyter 服务器日志的输出中查找令牌:http://jupyter-notebook.readthedocs.io/en/latest/security.html

然后在 VS Code 中:ctrl+shift+p

Jupyter:输入本地/远程Jupyter Notebook的url

我只安装了 docker 并运行容器。