Skip to main content

JupyterHub BaseSpawner class. Enables remote single-user server.

Project description

Documentation Status

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

jupyterhub_forwardbasespawner-1.1.7.tar.gz (58.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterhub_forwardbasespawner-1.1.7-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyterhub_forwardbasespawner-1.1.7.tar.gz.

File metadata

File hashes

Hashes for jupyterhub_forwardbasespawner-1.1.7.tar.gz
Algorithm Hash digest
SHA256 355fe45c33ca567af446dbb05eeaf6bd30e4436524ba092cd72863455af63ec4
MD5 82c9b52d5d0b6b3c40da618bfe969165
BLAKE2b-256 4163b16fa74d968aab7f7e692ef6cda9c06397b670c4e9bf1e020fbff8accb20

See more details on using hashes here.

File details

Details for the file jupyterhub_forwardbasespawner-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterhub_forwardbasespawner-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5a162bea8618e3bce33165d4ee30b3b72730e3f5f937945af42ace9228acf4
MD5 da928a62ac8377d67632d464c8350047
BLAKE2b-256 93b3100ff5afd2117c14730af7d67884c24643ba782878aa781591c451e89f54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page