Skip to main content

Gateway Provisioners

Build Status Documentation Status

Gateway Provisioners provides kernel provisioners that interact with kernels launched into resource-managed clusters or otherwise run remotely from the launching server. This functionality derives from Jupyter Enterprise Gateway's process proxy architecture. However, unlike process proxies, you do not need to use a gateway server to use these provisioners - although, in certain cases, it is recommended (for example when the launching server does not reside within the same network as the launched kernel).

Here is the current set of provisioners provided by this package, many of which have their requirements conditionally installed:

  • KubernetesProvisioner - Kernels (residing in images) are launched as pods within a Kubernetes cluster
    • pip install gateway_provisioners[k8s]
  • DockerSwarmProvisioner - Kernels (residing in images) are launched as containers within a DockerSwarm cluster
  • DockerProvisioner - Kernels (residing in images) are launched as containers on the local server
    • pip install gateway_provisioners[docker]
  • YarnProvisioner - Kernels are launched into a Hadoop YARN cluster (primarily Spark)
    • pip install gateway_provisioners[yarn]
  • DistributedProvisioner - Kernels are launched across a set of hosts using SSH, round-robin
    • pip install gateway_provisioners

This package also includes command-line utilities that can be used to create kernel specifications or inject bootstrap files into docker images relative to the desired provisioner:

  • jupyter-k8s-spec - for building kernel specifications relative to the KubernetesProvisioner
  • jupyter-docker-spec - for building kernel specifications relative to DockerProvisioner and DockerSwarmProvisioner
  • jupyter-yarn-spec - for building kernel specifications relative to the YarnProvisioner
  • jupyter-ssh-spec - for building kernel specifications relative to the DistributedProvisioner
  • jupyter-image-bootstrap - for injecting bootstrap support when building kernel-based images

Note: The container-based provisioners (KubernetesProvisioner, DockerSwarmProvisioner, and DockerProvisioner) require that the hosting server also be running within the same environment/network. As a result, these provisioners may be better suited for use by a Gateway Server (e.g., Jupyter Kernel Gateway) so as to not require the Notebook/Lab server also be deployed in a container.


Installation

Detailed deployment instructions are located in the Operators Guide of the project docs. Here's a quick start using pip:

# install from pypi
pip install --upgrade gateway-provisioners

# options for the command-line utilities can be viewed using '--help-all'
jupyter yarn-spec install --help-all

# run it with default options to install a Python-based kernelspec for Hadoop Yarn
jupyter yarn-spec install

Contributing

The Contribution page includes information about how to contribute to Gateway Provisioners. We encourage you to explore the other topics in our Contributors Guide like how to set up a development environment, or gaining an understanding of the system architecture, among other things.

Release files for gateway-provisioners 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gateway-provisioners 0.5.0
File Size Uploaded
gateway_provisioners-0.5.0.tar.gz 273.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gateway-provisioners 0.5.0
File Interpreter ABI Platform
gateway_provisioners-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 501.1 kB

Release files / gateway_provisioners-0.5.0.tar.gz

Download URL gateway_provisioners-0.5.0.tar.gz
Size 273.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4babaf2108d75cd42eae9e80c2767037f207b244ceec42b6acbf1d8d688cb6aa
BLAKE2b-256 checksum
How to use checksums
1374eba0aa5813b9bd9d6f95dc6750a03e3eb9f26c12f3eb8bde8eabe974cbc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / gateway_provisioners-0.5.0-py3-none-any.whl

Download URL gateway_provisioners-0.5.0-py3-none-any.whl
Size 227.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5ddac4800afdce8b1630d46f79ed15f1bb50f47c0f8844d11a9acc49a6e687f
BLAKE2b-256 checksum
How to use checksums
caf699481a498bd2023c9b1a2bf1fd290dc55e51eb7f26076a72ecba4c7f2e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page