Skip to main content

Jupyter kernel acting as a proxy to any other, already running, kernel.

Project description

Jupyter Kernel Proxy

This Jupyter kernel serves as a proxy to any already running kernel. It is meant to allow Jupyter Notebook to use kernels it cannot start itself, such as kernel embedded in another applications.

Jupyter Kernel Proxy was initially created as a way to use Jupyter Notebook using IPyIDA, but should work with any other embedded or remote kernel.

Install

Jupyter Kernel Proxy is on PyPi and can be installed using

pip install jupyter-kernel-proxy

The kernelspec must also be installed using:

python -m jupyter_kernel_proxy install

Usage

In Jupyter Notebook, start a new notebook and choose "Existing session" as kernel type.

When launched, the kernel proxy will try to connect to the last started kernel. This is similar to what jupyter console --existing would do.

The kernel implements a magic %proxy command to allow connecting to other running kernels. Only two subcommands are implemented: list and connect.

Here is an example usage:

In  [ ]: %proxy list
           kernel-382cad4b-2286-4ea0-bcb7-fcc30039ac78.json (proxy)
         * kernel-55159.json (no name)
           kernel-55151d00-21e4-4ea9-8dfd-b0842e27cba1.json (no name)
           kernel-50889.json (no name)
In  [1]: a = 5
In  [ ]: %proxy connect 55151d00-21e4-4ea9-8dfd-b0842e27cba1
         Connecting to kernel-55151d00-21e4-4ea9-8dfd-b0842e27cba1.json
In  [1]: a = 4
In  [2]: a
Out [2]: 4
In  [ ]: %proxy connect kernel-55159.json
         Connecting to kernel-55159.json
In  [2]: a
Out [2]: 5

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-proxy-1.0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distributions

jupyter_kernel_proxy-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

jupyter_kernel_proxy-1.0.1-py2-none-any.whl (7.8 kB view details)

Uploaded Python 2

File details

Details for the file jupyter-kernel-proxy-1.0.1.tar.gz.

File metadata

  • Download URL: jupyter-kernel-proxy-1.0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for jupyter-kernel-proxy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 766d70c2f4f2069b794941f452e6dc5b2f884d9c10107ee655ac539699096ef6
MD5 805d91cad03e739906892c1228115750
BLAKE2b-256 5c0ab1d9093fd1fb16ac6575731006fe3766c51bd6a0752cf6b36c826dab370a

See more details on using hashes here.

File details

Details for the file jupyter_kernel_proxy-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_kernel_proxy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37e66bbca623a4be932647934cd4efeb1ce2b76d3192db2dab1620d586c31244
MD5 3c866aef6c41189c68c3a8f5775d6b5b
BLAKE2b-256 ab188da1b26713c8ae0fe63c665fcd192af3671d6f7a48288a649424d2f94f63

See more details on using hashes here.

File details

Details for the file jupyter_kernel_proxy-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for jupyter_kernel_proxy-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ce7c4e9d97f88b1242dc4f71c912d1e4513982bfa0dc1852a9f335b2aba654ba
MD5 4945d8a727b55cbf9b7fad4c8914f93e
BLAKE2b-256 133a257a49807f99d1116be4fb19805892ae66cd3287b249842208225ee11317

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