-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to Kernel of updated remote Jupyter Server without restarting VSCode #13488
Comments
Thanks for using the API and filing this issue. If the Uri changes, are you triggering the |
Hey, thanks for the quick response. As suggested I tried implementing the
I fire the Comparing the logs between successful connection v/s unsuccessful kernel connection
|
Hey, Can I ask if there are any updates on the issue? Happy to provide more debugging information if required. |
Are you providing a new handle, ie is the handle different after you update the server or is it the same. Also please could you test this against the latest pre release version in vscode insiders. |
Nope, the handle seems to be the same i.e what was provided initially when registering an instance of The new server uri (
Got it, will try to test with https://code.visualstudio.com/insiders/# |
If the server Uri changes, then please create a new handle and trigger a change instead of returning the new server Uri from the getServerUri method. Try that and let me know how it goes |
Hey, Thanks Triggering the handle change and sending the updated handle list does seem to trigger getServerUri but when trying to run the notebook with the kernel of the updated server then the notebook throws:
|
Ok I think understand what's happening
The way the UI works is, if the server/handle changes, then the previously selected notebook kernel is deleted/disposed and the user will need to select another kernel and run a cell
|
Hey, thanks for the quick response!
We have servers running on CPU/GPU and users toggle between them.
Yup, both server uri and auth tokens are different
The way I'm tackling this is on server uri change:
The new kernel does reflect on the notebook but when I run the notebook it throws with the error shared in the previous comment |
Even if I don't close the notebooks and use the
|
|
Hey, Did a test with VSCode insiders, Jupyter Pre Release, and Python Pre Release but got the same bug.
No, it's part of the uri itself. |
I beleive I've identified the issues here, unfortunately the fixes will take a while to get into the product as there is quite a lot that needs to be fixed in this space. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@rjra2611 plese can you test the latest relese version, I believe this should be fixed now. |
Closing for now, if this issue persists, please feel free to create a new issue. We're looking at making the API stable and simplifying it. |
Looks like there is nothing to verify here @DonJayamanne ? |
Applies To
What happened?
Hey,
I have implemented the interface IJupyterUriProvider to connect my remote Jupyter servers.
Whenever I update my remote Jupyter server than in that case I'm unable to connect to the new remote kernels
The connection to the new remote Jupyter server seems to be successful as I don't get any errors (which I do when I tried with wrong server uri) and
getServerUri
method is successfully resolved.The only way I'm able to connect to the kernel of the updated remote Jupyter server is by restarting (closing and reopening) the VSCode.
Attaching the verbose logs for both the cases
without restart.txt
After restart.txt
The difference I notice in the logs is that the
After restart.txt
logs containswhich doesn't happen without restart once both have logged
No controller, hence notebook communications cannot be initialized
VS Code Version
Visual Studio Code (1.78.1, undefined, desktop)
Jupyter Extension Version
Jupyter Extension Version: 2023.4.1011241018.
Jupyter logs
Attached the Logs in the Issues Description
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?
None
The text was updated successfully, but these errors were encountered: