Skip to main content

A web server for spawning and communicating with Jupyter kernels

Project description

Jupyter Kernel Gateway

Google Group PyPI version Build Status Documentation Status

Overview

Jupyter Kernel Gateway is a web server that provides headless access to Jupyter kernels. Your application communicates with the kernels remotely, through REST calls and Websockets rather than ZeroMQ messages. There are no provisions for editing notebooks through the Kernel Gateway. The following operation modes, called personalities, are supported out of the box:

  • Send code snippets for execution using the Jupyter kernel protocol over Websockets. Start and stop kernels through REST calls. This HTTP API is compatible with the respective API sections of the Jupyter Notebook server.

  • Serve HTTP requests from annotated notebook cells. The code snippets are cells of a static notebook configured in the Kernel Gateway. Annotations define which HTTP verbs and resources it supports. Incoming requests are served by executing one of the cells in a kernel.

Jupyter Kernel Gateway uses the same code as Jupyter Notebook to launch kernels in its local process/filesystem space. It can be containerized and scaled out using common technologies like tmpnb, Cloud Foundry, and Kubernetes.

Example Uses of Kernel Gateway

  • Attach a local Jupyter Notebook server to a compute cluster in the cloud running near big data (e.g., interactive gateway to Spark)
  • Enable a new breed of non-notebook web clients to provision and use kernels (e.g., web dashboards using jupyter-js-services)
  • Create microservices from notebooks using the Kernel Gateway notebook-http mode

Features

See the Features page in the documentation for a list of the Jupyter Kernel Gateway features.

Installation

Detailed installation instructions are located in the Getting Started page of the project docs. Here's a quick start using pip:

# install from pypi
pip install jupyter_kernel_gateway

# show all config options
jupyter kernelgateway --help-all

# run it with default options
jupyter kernelgateway

Contributing

The Development page includes information about setting up a development environment and typical developer tasks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_kernel_gateway-3.0.0.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

jupyter_kernel_gateway-3.0.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_kernel_gateway-3.0.0.tar.gz.

File metadata

  • Download URL: jupyter_kernel_gateway-3.0.0.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jupyter_kernel_gateway-3.0.0.tar.gz
Algorithm Hash digest
SHA256 f6f52468a24900a19336125edc4d5ae39f0b15e595561f1200b7a1e71fea5494
MD5 a98d53a8731c79ce70940cb7b41270b1
BLAKE2b-256 05b88c9d20548c655ff62880cb61421d75b998dd51a9cd47e37a1b9937060225

See more details on using hashes here.

File details

Details for the file jupyter_kernel_gateway-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_kernel_gateway-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f716dedcfd68f4a2ce25749d12c501e7afe3c9adb74c76252d9edf64ab3761e
MD5 485e1508fc6a9e5fbc8d7de241823923
BLAKE2b-256 e03fc8603962e00e05ca9e2511f27ef0f482776d3ea5627aa1911a194c0b7dbd

See more details on using hashes here.

Supported by

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