JupyterHub BaseSpawner class. Enables remote single-user server.
Project description
ForwardBaseSpawner
The ForwardBaseSpawner is a base class, which can be used by any Spawner that creats the singleuser notebook server on a remote system. The ForwardBaseSpawner itself cannot start anything. The actual logic of starting / stopping must be implemented in a subclass.
Overview
The JupyterHub ForwardBaseSpawner offers a variety of useful functions, to enable and manage the communication between JupyterHub and a singleuser notebook servers, which runs on a remote machine. It covers the following functionalities:
- Manage ssh port forwarding process from JupyterHub to singleuser notebook server
- Manage ssh port forwarding process from singleuser notebook server to JupyterHub
- Manage Kubernetes Service Resource to make singleuser notebook server reachable for JupyterHub
- Adds cancel function. Allows the user to cancel an ongoing spawn process
- Start process of remote singleuser notebook servers may send their current progress to SpawnEventsAPIHandler, which shows it to the user
- SetupTunnelAPIHandler allows to define the ssh jump node between JupyterHub and singleuser notebook server during the spawn process
- ListServersAPIHandler returns all running UserID-servername combinations. Gives remote systems the chance to compare their running servers with the JupyterHub ones
- SSHNodeRestartedAPIHandler enables a recreation of all port forwarding process to a specific jump node. Required when a jump node was restarted
For more information and the usage have a look at the JupyterHub OutpostSpawner documentation. It's a subclass of the ForwardBaseSpawner and enables a central JupyterHub to start singleuser notebook-server on multiple remote systems.
You can find a few examples and configurations over there.
Requirements
At least one JupyterHub running on a Kubernetes Cluster (recommended is the use of Zero2JupyterHub). A subclass of the ForwardBaseSpawner which implements the actual start/stop logic for singleuser notebook servers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyterhub_forwardbasespawner-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b952b26170d6607b5e1920db3ee8f1bb355bd7910652b337b2672b3bd10ae192 |
|
MD5 | e8f1f427519ae1a02ce73b0e936b0c16 |
|
BLAKE2b-256 | 3733b19cf109c41a8553e63f4e94587030cd961141837433d9779984aeb3deed |
Hashes for jupyterhub_forwardbasespawner-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc55d5a336edfcf8e95b7e3ab986e1eb647853eac09a953f83a5bfb2fdfc9078 |
|
MD5 | 2e66d7217a8b4fc54030b474e7385e46 |
|
BLAKE2b-256 | 409fd7b423509085a875e156d3d39f4c4a5be49662534fe50557982a75ada326 |