Vscode-jupyter: DS: Support JupyterHub

Created on 10 Jan 2019  路  16Comments  路  Source: microsoft/vscode-jupyter

The Data Science vm uses JupyterHub to handle connections to it. We should support logging in via a user API token (different from server API token) to connect to the machine. After we support this we also need to support mismatched certs, as the DS VM only uses a local certification which might not be accepted unless we allow it.

Most helpful comment

@elgalu There currently is a way to connect (via what you see in the blog above) by pulling out the API token from jupyter hub instance and making sure that kernel is started up from jupyter hub. We were going to re-examine this issue in the near future. With our recent kernel support work that we did we might be able to do more here like starting the kernel for you. Or being able to use your Jupyter Hub credentials directly as opposed to having to pull the API key, but no firm plans on any of that yet.

All 16 comments

Gopi Jumar is the internal DS VM contact who logged this. We should talk with him for validation that this is fixed.

Would like to know if Visual Studio Code support to connect to a remote server with standard JupyterHub environment for data science, any comments or guidance welcome.

@lgonzalezsa Currently it doesn't. Right now remote is limited to just using a token connection for connecting to a single notebook server. However getting in password support and juypter hub support (which is tracked by this work item) are both on the backlog for consideration.

We have around 300 monthly JupyterHub users, it would be really nice to see this feature request moving forward:)

+1 we run Jupyterhub and all user can't use VScode for just this issue

+1 we run Jupyterhub with great success with several hundred users. Having VSCode would be a killer option

+1 Agree, would be a killer option.

I'd just like to point this out: I installed jupyter locally (didnt run a server), and specified my remote server URL using CTRL+SHIFT+P using a token found in the user control panel settings. The link was something like this:

https://myurl.com/user/myuser?token=mytoken

This seems to work, and the initial problem is that vscode will simply refuse to work with jupyter unless it is installed locally, despite me never running a real server.

It worked but I had issues with self signed certificates as the click on run anyway did not work. I had to add it to my local certificate store.

Moving back to triage based on number of up votes

Cost guess 3 days

Was this implemented already? which version of VSCode is required?

It seems to work according to:
https://blog.jupyter.org/connect-to-a-jupyterhub-from-visual-studio-code-ed7ed3a31bcb

@elgalu There currently is a way to connect (via what you see in the blog above) by pulling out the API token from jupyter hub instance and making sure that kernel is started up from jupyter hub. We were going to re-examine this issue in the near future. With our recent kernel support work that we did we might be able to do more here like starting the kernel for you. Or being able to use your Jupyter Hub credentials directly as opposed to having to pull the API key, but no firm plans on any of that yet.

@IanMatthewHuff
"With our recent kernel support work that we did we might be able to do more here like starting the kernel for you. Or being able to use your Jupyter Hub credentials directly as opposed to having to pull the API key"
This would be awesome to have in VS Code!
Do you have any specific plans for these cool features yet?

@sergei3000 No we don't have these on our committed schedule yet.

:(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janosh picture janosh  路  4Comments

AlbertDeFusco picture AlbertDeFusco  路  4Comments

SimonCrios picture SimonCrios  路  3Comments

ashtou picture ashtou  路  3Comments

n-a-sz picture n-a-sz  路  3Comments