akernel
An asynchronous Python Jupyter kernel built on AnyIO:
- runs in a separate process or in-process.
- supports top-level
await.
Install
For a standalone, out-of-process kernel, install the subprocess extra:
pip install "akernel[subprocess]"
This will give you a Python 3 (akernel) in JupyterLab.
akernel can also run in-process with Jupyverse.
Install it with:
pip install "fps-akernel-task"
This will give you both Python 3 (akernel-task) and Python 3 (akernel-thread) kernels
in JupyterLab.
| Kernelspec | Execution in Jupyverse | Interrupt mode |
|---|---|---|
akernel |
Separate process | Signal |
akernel-task |
In-process, on the server event loop | Message |
akernel-thread |
In-process, in a worker thread | Message |
To refresh the kernelspecs in an existing installation, run:
akernel install --mode process
akernel install --mode task
akernel install --mode thread
The default mode is process.
In-process kernels
akernel-task runs in Jupyverse's process, so running blocking user code in the kernel
will also block Jupyverse.
akernel-thread is an in-process kernel that runs user code in a separate thread,
which won't block Jupyverse.
Limitations
- Cell output redirection currently uses the kernel's
printfunction rather than capturing all writes tostdoutandstderr. - In-process kernels cannot be interrupted while running blocking code.
Metadata
Release files for akernel 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| akernel-0.4.2.tar.gz | 30.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| akernel-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.9 kB
Release files / akernel-0.4.2.tar.gz
| Download URL | akernel-0.4.2.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03b6575479e2c954108d81881f17e6c191e20e52b1f894e7083a1239cd12d4d7
|
|
BLAKE2b-256 checksum How to use checksums |
531cde9b64e539fb4a06dccc1165445e039210a23734ffd16590c98742cade4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.15.0"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.5 29 Sep 2026","python":"3.15.0","system":{"name":"Linux","release":"7.0.0-38-generic"}} HTTPX2/2.13.1
|
Release files / akernel-0.4.2-py3-none-any.whl
| Download URL | akernel-0.4.2-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5798694f8126281cc7a68df6f5239e6c9a55bc463dd378ea68fc206717d6f67
|
|
BLAKE2b-256 checksum How to use checksums |
7f8599b26a6e6fa215b303775dfb9ca7b9930c5f8552a3256b8178d06ce61ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.15.0"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.5 29 Sep 2026","python":"3.15.0","system":{"name":"Linux","release":"7.0.0-38-generic"}} HTTPX2/2.13.1
|