-
Notifications
You must be signed in to change notification settings - Fork 333
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
Remote kernel does not work after updating to Hydrogen 2.16.1 #2109
Comments
Could you let me know how you use a remote kernel? The settings, the kernel you use, etc. This allows me to reproduce the issue and fix it. |
I apologize for the lack of words as I rushed the problem out. Here's how I'm using it The Hydorogen version 2.15.3 recognizes the kernel and reads the token with the above operations. With version 2.16.1, I get an error ( |
No worries. I will look into this. I can guess where the issue is coming from. It is probably because of using the new XMLHttpRequest dependency |
I think I have the same issue.
I get as far as seeing the available environments/kernels but nothing happens when I try to select(press enter) on any of them. Same 2.15.3 works, 2.16.1 doesn't. |
The I've tried that way, but There is not a day that goes by that I do not code in a remote environment myself. That's more important than exporting It looks like the cause is somewhat known, so until it is resolved, I'm waiting for an improved version to be released by rolling back using something like |
I fixed it in the latest version. Let me know if it works for you too. |
Thank you for your quick response. It was very helpful. I updated it immediately and confirmed that it works. So far it is working fine. Thank you very much. |
Thanks for the quick response @aminya , I'm happy to see some love for Hydrogen :) However... I could connect to existing/already running kernel session with new version, but not create a new session. Still get the That error seems to pop up when I click enter on any of the kernels/environments in the list of kernels/environments shown after I have pasted the token and selected to start a new session. Found this old comment #922 (comment) (thanks @kuri54 for pointing me in its direction!) I did not have a Following the instructions in the comment linked above, I then set the So I reset Now I still don't have to enter a token when connecting with hydrogen, but can select to start a new session and kernel/environment. But the status of the kernel (bottom left in atom window) gets stuck on "reconnecting" and the jupyterlab logs say Which makes sense I guess since I for some reason don't have to give a token now. I reset Downgraded to 2.15.3 and everything works fine again. |
The reason for this error might be that I switched to the native XMLHttpRequest when you use a token. If you select "cookies" still the old behavior is used because that is a non-standard way. I can switch everything to the old behavior, but not sure if that is a good idea (?). The error might be there for a reason. People are reporting that refreshing the server has solved the issue... |
Just to be sure, I'll add my environment to the list. First, I commented out Next, we set up the token for JupyterNotebook in the Dockerfile. (ex. After updating to |
Aha, okay, it works when I set the token in Hydrogen settings So what I've always done before is I've just started jupyter lab, copied the auto generated token, and then used that in the interactive prompt in Hydrogen/Atom when connecting. It seems that with the changes in 2.16.2 the interactive prompt for a token doesn't work anymore, but if I paste the auto generated token from jupyter lab into Hydrogen settings, it works fine. Of course, it's then much easier to set the token with So, TLDR; it works now, thanks! @aminya Is it intended that the interactive prompt for the token doesn't work anymore? I checked the Hydrogen docs and they actually say that one should add the token in Hydrogen settings as I've now done, so maybe my issues were just caused by me using a deprecated functionality :) |
I see. I will check if the token entered in the UI is not transferred to the server correctly! |
This is fixed in the latest version. Hydrogen now prompts for authentication in case it could not find a session. |
Awesome, thanks again for all your work on this @aminya! |
macOS Big Sur 11.2.3
Atom 1.56.0 x64
Hydrogen 2.16.1
#2094 has been addressed and updated to Hydrogen 2.16.1.
I found a bug where the connection to the remote kernel did not work properly after the update.
Rolled back Hydrogen to 2.15.3 with
apm
, and confirmed that it works correctly.I will try not to update until the issue is resolved.
The text was updated successfully, but these errors were encountered: