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.
Release files for akernel 0.4.1
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.1.tar.gz | 29.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| akernel-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.5 kB
Release files / akernel-0.4.1.tar.gz
| Download URL | akernel-0.4.1.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56da4bb4ed6962d88395b89fc51ecc120022bf90a7d8e710981c3aa927503359
|
|
BLAKE2b-256 checksum How to use checksums |
d31ce8c93cc18030c3f86ee3c542d42c58644b04087dc601a6c934839c379f9c
|
| 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.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"7.0.0-31-generic"}} HTTPX2/2.13.0
|
Release files / akernel-0.4.1-py3-none-any.whl
| Download URL | akernel-0.4.1-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c730981abb037c03e0c87ea9cd7ff29869b88568c4772ac81044f66ed043e3ca
|
|
BLAKE2b-256 checksum How to use checksums |
da5c2ea7b7007006a4b21b569013e0a84c5ae48b345817c427d46161746253a5
|
| 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.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"7.0.0-31-generic"}} HTTPX2/2.13.0
|