You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
I would like to choose an existing Jupyter Server to run my notebooks in VSCode. This used to be possible in the way that is described here. The "Specify Jupyter Server for Connections" option is now deprecated, however. The recommended procedure is to hit "Select Kernel" in the top right corner and to choose "Existing Jupyter Server" from the dropdown menu. Once that's done, I pick "Enter the URL of the running Jupyter server" and enter the URL of the running server. After hitting enter, VSCode does not connect me with that server and instead complains that "A Jupyter Server with this URL already exists".
This message is very puzzling because the whole point of this procedure was exactly that: to connect me to an existing jupyter server. I suspect that this is very likely a bug because VSCode indeed finds my running server but does not establish the connection although this is the now recommended way of connecting to running jupyter servers.
So, how then can I establish the connection to the Jupyter Server?
Further background: The Jupyter Server is running inside a container on a remote machine. I am connecting to that remote machine and attach VSCode to the running container. The first time when I connect to the container, VSCode prompts for the password of my Jupyter Server. According to the logs, this password is invalid. I copy-pasted it and it therefore must be correct. I verified that I can connect to the server in the browser using that very same token. So is it possible that VSCode may not process my password correctly?
Applies To
What happened?
I would like to choose an existing Jupyter Server to run my notebooks in VSCode. This used to be possible in the way that is described here. The "Specify Jupyter Server for Connections" option is now deprecated, however. The recommended procedure is to hit "Select Kernel" in the top right corner and to choose "Existing Jupyter Server" from the dropdown menu. Once that's done, I pick "Enter the URL of the running Jupyter server" and enter the URL of the running server. After hitting enter, VSCode does not connect me with that server and instead complains that "A Jupyter Server with this URL already exists".
This message is very puzzling because the whole point of this procedure was exactly that: to connect me to an existing jupyter server. I suspect that this is very likely a bug because VSCode indeed finds my running server but does not establish the connection although this is the now recommended way of connecting to running jupyter servers.
So, how then can I establish the connection to the Jupyter Server?
Further background: The Jupyter Server is running inside a container on a remote machine. I am connecting to that remote machine and attach VSCode to the running container. The first time when I connect to the container, VSCode prompts for the password of my Jupyter Server. According to the logs, this password is invalid. I copy-pasted it and it therefore must be correct. I verified that I can connect to the server in the browser using that very same token. So is it possible that VSCode may not process my password correctly?
Cheers,
Michael
VS Code Version
Version: 1.78.2 (Universal) Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435 Date: 2023-05-10T14:44:45.204Z Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 21.6.0 Sandboxed: Yes
Jupyter Extension Version
v2023.4.1011241018
Jupyter logs
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
The text was updated successfully, but these errors were encountered: