Skip to main content

Jupyter server extension that allows mixing local and remote kernels together

Project description

Jupyter Kernel Mixing

This package provides a Jupyter Server extension that allows you to run local and remote kernels side by side.

It does this by "mixing" the local and remote kernels together into a single collection containing both.

This collection then keeps track of whether specific kernels were local or remote and forwards any corresponding kernel requests accordingly.

Installation

Install the kernels-mixer Python package using pip:

pip install kernels-mixer

Setup

If you do not already have a Jupyter config file (e.g. ~/.jupyter/jupyter_lab_config.py), the first generate one with the following command:

jupyter lab --generate-config

The open your config file and add the following two lines to the end:

import kernels_mixer
kernels_mixer.configure_kernels_mixer(c)

Kernel Name Uniqueness

This extension expects that local and remote kernels have different names. If that is not the case then the local kernel will override the remote kernel. For example, if there is a local kernel named "python3", then any kernels in the remote kernel gateway named "python3" will be hidden in favor of it.

When using this extension, it is recommended that the remote kernel gateway is set up to add a prefix onto every kernel name in order to distinguish them from the local kernels.

Similarly, it is recommended that remote kernel display names are augmented to indicate where they are running.

The default kernel gateway used with this extension is the regional GCP kernel gateway hosted under kernels.googleusercontent.com, which ensures that both of those conditions are followed.

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

kernels_mixer-0.0.15.tar.gz (13.6 kB view details)

Uploaded Source

File details

Details for the file kernels_mixer-0.0.15.tar.gz.

File metadata

  • Download URL: kernels_mixer-0.0.15.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for kernels_mixer-0.0.15.tar.gz
Algorithm Hash digest
SHA256 69f6a6e401a64d4b6ad83f726ecdf3b0e4a53b67e6a36f51ccb5875060fef887
MD5 9689fd91dd8928eba54a7ca3ad19965e
BLAKE2b-256 383162728d2f7d6876895ec8e617523850e5f826f5d037c1127e537ce5f2fe90

See more details on using hashes here.

Supported by

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