token not working in jupyter kernelgateway
See original GitHub issueDescription
I have put my remote kernelgateway configurations in the setting like the following:
{"name": "my_server", "options": {"baseUrl": "http://ip:port", "token": "my_token"}}
but whenever I try to connect to a server which does not have any running kernels, it prompts me with a token authentication. When I try to connect to a server with a running python kernel, it won’t prompt me for a token authentiation.
I was doing fine with Hydrogen when this started to happen around few months ago, so I think it’s a bug somewhere around either Hydrogen or Jupyter Kernelgateway.
Steps to Reproduce
- Setup remote kernelgateway using jupyter kernelgateway@2.5.0
- Setup configurations in hydrogen including “baseUrl” and “token”
- Hydrogen:connect-to-remote-kernel
- Select remote server from dropdown, which does not have a running python kernel
- hydrogen (or jupyter kernelgateway) prompts for token authentication
Versions
OS version: Windows 10.0.19042.1165
atom --version
Atom : 1.58.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
apm --version
apm 2.6.2
npm 6.14.13
node 12.14.1 x64
atom 1.58.0
python 3.8.8
git 2.33.0.windows.1
visual studio
Hydrogen version:
[Your Hydrogen’s version]
Hydrogen
├── 2.16.3
├── https://github.com/nteract/hydrogen
├── Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
├── 2423086 downloads
└── 802 stars
[Jupyter kernelgateway version]
jupyter kernelgateway@2.5.0
Plugins
Have you installed and activated any of the Hydrogen plugins below ?
- Hydrogen Launcher
- hydrogen-python
- Data Explorer
None.
Logs
no logs in console
Expected behavior
Connect to remote kernelgateways without prompting for token.
Screenshots
Setting:
When there’s no running sessions in server:
When there’s running sessions in server:
Additional context
This started happening few months ago. Until then, the “token” from hydrogen setting was working fine.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top GitHub Comments
I second this (to some extent). Connecting to my remote kernel also prompts me to input the token manually, even if it is already given in the kernelgateway configurations in Hydrogen’s properties. This was not requested in previous versions. (
atom 1.57.0
,hydrogen 2.16.3
,ubuntu 20.04
.)I will look into this over the next week. You can downgrade Hydrogen temporarily if you want