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.4.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6827f4ba14b382e657f43fcbcc8ce50f8f4d48b12b18f49d0d6b55b098d55b4 |
|
MD5 | cbce5c19212ba7661094f1825f5e4212 |
|
BLAKE2b-256 | d4ac53133c6a3926a470c9e5a9356b010473fadae494c445e6965068addeb349 |
Hashes for jupyterhub_forwardbasespawner-1.0.4.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5e645edc383e45d9b5fc59f71ca733a06ea4b3807a8a5bf6d6ee96c50d5ff2f |
|
MD5 | ea451b8591f34784e3fef25d6edfb957 |
|
BLAKE2b-256 | b63eeee3a7765c425ee864cd971f429aa35e80f38509274b8abf7be23e98beb6 |