Skip to main content

SuperKernel Adapter

SuperKernel Adapter connects ordinary Jupyter notebooks to remote Super Kernel compute.

It is a Jupyter-compatible Python kernel that connects a local notebook to a configured SuperKernel runtime. Your existing Jupyter tools continue to manage the notebook connection while code runs on the selected remote Python, MPI, or PyTorch environment.

Features

  • Works as a standard Jupyter kernel in JupyterLab and VS Code.
  • Streams remote output back to notebook cells as it is produced.
  • Preserves a separate Python namespace for each notebook session.
  • Executes cells sequentially and supports interrupt and restart actions.
  • Reconnects interrupted output streams without submitting the cell twice.
  • Keeps authentication tokens out of Jupyter kernelspecs and command-line arguments.

This is the shared host adapter for both the VS Code and Jupyter plugins. Local runtime records describe notebook sessions, not remote runner health. An ordinary failed cell keeps its notebook error but returns the adapter to Idle when execution completes, including failed silent editor checks. Adapter authentication, transport, protocol or restart failures still report Error. Publication and shutdown cleanup use the shared client-state lock, and each record retains its last cell-start timestamp across heartbeat refreshes.

Silent requests still execute but suppress notebook output. If a connection failure leaves an execution unresolved, rerun its original code to resume it; different code is rejected until the previous result is recovered or the kernel is restarted. Code is never automatically replayed after a lost reply handle.

Installation

SuperKernel Adapter requires Python 3.10 or newer.

uv pip install superkernel-adapter

The JupyterLab or VS Code SuperKernel integration normally installs and configures the notebook kernels for you. A configured kernel can then be selected from the standard Jupyter kernel picker like any other kernel.

This package contains the notebook runtime only. Gateway login, remote runtime creation, and local kernel registration are handled by a compatible SuperKernel client integration.

The distribution is superkernel-adapter, the Python import is superkernel, the module launcher is python -m superkernel.kernel, and the kernel class remains SuperKernel.

Python API

The kernel class is available for integrations that need to inspect or extend the local runtime:

from superkernel import SuperKernel

The supported process entry point for a configured Jupyter kernelspec is:

python -m superkernel.kernel

Its connection and authentication arguments are generated by the client integration and are not intended to be entered manually. Clients use the selected Python environment's absolute executable, such as /opt/jupyterhub/bin/python, followed by -m superkernel.kernel. No standalone superkernel or sk-adapter command is installed. Picker labels append (SuperKernel) while their language remains Python.

Upgrading from superkernels

Upgrade both management plugins together with this adapter. They regenerate canonical kernelspec launch commands while retaining the existing ~/.superkernel version-1 records, sessions, kernel IDs and workspace files. Restart notebook kernels and reload the VS Code window after installation. The retired distribution/import has no runtime alias; the root local install workflow removes it after installing the new adapter. An already-running old process may be recognized only for explicit, identity-checked shutdown. The Python module launches a notebook adapter, not a Gateway or infrastructure management CLI. Retired module/console identities are cleanup-only; no import aliases.

Security

SuperKernel reads authentication from a client-managed local file immediately before each remote request. Credentials are not embedded in the kernelspec, stored by this package, or passed directly on the process command line. The runtime fails closed when its authentication file is missing or invalid. It validates the version-1 session metadata, expiry, and Gateway binding before every request; renewing the private file takes effect without restarting it.

Tests

Run python -m pytest -q superkernel-adapter/tests from the repository root with the runtime and pytest installed. Tests use temporary private state and do not read or modify saved user credentials.

Project status

Version 0.10.1 is an alpha release for trusted teams. It hardens restart confirmations and reports output replay gaps. It uses the superkernel.kernel module with no console CLI. The integration contract may still evolve before 1.0. Backend source is private and is not distributed in this package.

Learn more at superkernel.leoustc.com.

Metadata

Release files for superkernel-adapter 0.10.1

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

Built distribution (wheel)

Table of built distributions (wheels) for superkernel-adapter 0.10.1
File Interpreter ABI Platform Actions
superkernel_adapter-0.10.1-py3-none-any.whl Python 3 none any Details for superkernel_adapter-0.10.1-py3-none-any.whl

Release files / superkernel_adapter-0.10.1-py3-none-any.whl

Download URL superkernel_adapter-0.10.1-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dffe5cdfc73a8be938ebb5e35312a5ce58b2f395ec080ae706e30956ae673f76
BLAKE2b-256 checksum
How to use checksums
bece15ed9caa11f769384951c8fe31eafb053f05a0f2b244fd129630832cc9c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for superkernel-adapter 0.10.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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