简体   繁体   中英

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

I've got the updated Python VSCode extension installed and it works great. I'm able to use the URL with the token to connect to a remote Jupyter notebook. I just cannot seem to figure out how to change the kernel on the remote notebook for use in VSCode.

If I connect to the remote notebook through a web browser, I can see my two environments through the GUI and change kernels. Is there a similar option in the VSCode extension?

VS Code doesn't currently expose remote kernels in the UI, but we will look into that soon. Can you please log an issue on https://github.com/Microsoft/vscode-python/issues to help us track this request?

Run the following command in vscode:

Python: Select interpreter to start Jupyter server

It will allow you to choose the kernel that you want.

The command that worked for me in vscode:

Notebook: Select Notebook Kernel

Then, scroll all the way to the bottom, to choose

Connect to Local Kernels will change to local kernel

You can switch between Remote and Local from here.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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