简体   繁体   English

Python Vscode 扩展 - 无法更改远程 jupyter 笔记本 kernel

[英]Python Vscode extension - can't change remote jupyter notebook kernel

I've got the updated Python VSCode extension installed and it works great.我已经安装了更新的 Python VSCode 扩展,它运行良好。 I'm able to use the URL with the token to connect to a remote Jupyter notebook.我可以使用带有令牌的 URL 连接到远程 Jupyter 笔记本。 I just cannot seem to figure out how to change the kernel on the remote notebook for use in VSCode.我似乎无法弄清楚如何更改远程笔记本上的 kernel 以在 VSCode 中使用。

If I connect to the remote notebook through a web browser, I can see my two environments through the GUI and change kernels.如果我通过 web 浏览器连接到远程笔记本,我可以通过 GUI 看到我的两个环境并更改内核。 Is there a similar option in the VSCode extension? VSCode 扩展中是否有类似的选项?

VS Code doesn't currently expose remote kernels in the UI, but we will look into that soon. VS Code 目前没有在 UI 中公开远程内核,但我们很快就会研究这一点。 Can you please log an issue on https://github.com/Microsoft/vscode-python/issues to help us track this request?您能否在https://github.com/Microsoft/vscode-python/issues上记录问题以帮助我们跟踪此请求?

Run the following command in vscode:在 vscode 中运行以下命令:

Python: Select interpreter to start Jupyter server Python:选择解释器来启动 Jupyter 服务器

It will allow you to choose the kernel that you want.它将允许您选择所需的内核。

The command that worked for me in vscode:在 vscode 中对我有用的命令:

Notebook: Select Notebook Kernel笔记本:Select 笔记本 Kernel

Then, scroll all the way to the bottom, to choose然后,一直滚动到底部,选择

Connect to Local Kernels will change to local kernel连接到本地内核将更改为本地 kernel

You can switch between Remote and Local from here.您可以从这里在远程和本地之间切换。

在此处输入图像描述

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

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