jupyterhub / jupyterhub

Multi-user server for Jupyter notebooks

Home Page:https://jupyterhub.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Launch server from CLI

blackliner opened this issue · comments

Proposed change

I would like to be able to run a command inside a client terminal and start the jupyterhub server.

Who would use this feature?

Developers as well as automation can utilize this feature to spin up a server on-demand

(Optional): Suggest a solution

Provide an API plus a CLI to spin up servers

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

We do have an extensive API covering everything needed for this.

For example, starting a server is:

curl -H "Authorization: Bearer $JUPYTERHUB_API_TOKEN" -X POST https://hub.example.org/hub/api/users/$USER/servers/

I don't think maintaining a CLI is in-scope at the moment. But there is this jupyterhub Python client generated from our OpenAPI spec, which you might use.