Skip to content
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

Support spawning notebook servers for JupyterHub #6402

Closed
TomAugspurger opened this issue Jun 29, 2021 · 3 comments
Closed

Support spawning notebook servers for JupyterHub #6402

TomAugspurger opened this issue Jun 29, 2021 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality notebook-remote Applies to remote Jupyter Servers

Comments

@TomAugspurger
Copy link

This is a bit similar to #1668, but I couldn't tell if that was a bug report or a feature request.

The goal of this feature request is to make it easier to work with a remote Jupyter Kernel that's managed by JupyterHub. Currently, users need to

  1. create an API token through JupyterHub (first time only, see Support OAuth login for JupyterHub #6035 for an alternative)
  2. Log into the Hub and start a notebook server
  3. Connect to the started notebook server from VS Code

To eliminate the need for step 2, I wonder if VS Code could start the notebook server for the user? JupyterHub's REST API supports spawning user servers. Would it be possible for VS Code to make a POST request to that endpoint, using the user's token, to spawn a notebook server if it isn't already running?

$ curl -X POST -H "Authorization: token <user-token>" https://<hub-url>/hub/api/users/<username>/server  

There are some complications around things like feedback as the server is starting and profiles, but I think just having the basics of starting up a notebook server for the user would be fantastic. Thanks!

@IanMatthewHuff
Copy link
Member

@TomAugspurger Thanks for the feedback. Seems like something that we'd want to support.

@greazer greazer added the notebook-remote Applies to remote Jupyter Servers label Aug 4, 2021
@IanMatthewHuff IanMatthewHuff removed their assignment Sep 2, 2021
@choldgraf
Copy link

Just a note from me that I think this would be awesome. ✨

@greazer greazer added feature-request Request for new features or functionality and removed enhancement labels May 4, 2022
@DonJayamanne DonJayamanne self-assigned this Aug 15, 2022
@DonJayamanne
Copy link
Contributor

Closing this issue as there haven't been enough upvotes on this, and we believe this is possible with the API we have today (i.e. someone can contribute an extension that would make this possible)

Could also be closed in favour of #12268

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality notebook-remote Applies to remote Jupyter Servers
Projects
None yet
Development

No branches or pull requests

5 participants