File-bound, manager-independent Python kernel for AI/ML work by people and agents
pip install darkpyonix==0.2.0 Copy PIP instructions
DarkPyonix binds one Python kernel to one notebook file. Close the editor, lose the network or kill the manager: the run keeps going, and the next tool that opens the file finds the same kernel. It is built for long AI/ML runs shared by people and agents.
darkpyonix run train.py # run the whole file, follow the output darkpyonix run train.py --detach # start it and return the run id darkpyonix logs train.py --follow # follow the latest run darkpyonix stop train.py # interrupt the running cell; the kernel stays darkpyonix vars train.py # what the kernel holds now One kernel per file. The kernel id comes from the file's path. Every IDE, agent and shared viewer reaches the same kernel, and a second run of a busy file is refused, not duplicated. Kernels outlive managers. A kernel never depends on a manager being alive, so any manager can come and go. Stop means interrupt. Stopping raises KeyboardInterrupt in the running cell. The variables stay, so the next run continues from them. Runs are recorded. Each run is saved beside the file in __runs__/ as an nbformat 4 .ipynb. Standard library only, Python 3.8+. The kernel starts from any interpreter without being installed there. Notebooks are plain .py / .pynb files with # %% cells. They stay valid Python under python file.py. What this package is This package is the runtime API that a notebook imports as darkpyonix (markdown, params, binding, display and the rest). It has no dependencies. Inside a kernel, import darkpyonix works without it, because the kernel loads its own sources as darkpyonix. Install it so a notebook also runs outside a kernel, for example with uv run python train.py in CI.
uv add darkpyonix # into a uv project ppp core add "darkpyonix==0.2.0" # with pypackpack tcl install darkpyonix # with toolchain-lite The darkpyonix CLI and the manager are a separate Rust binary. It is not in this package yet, because prebuilt binaries are not published (planned). The install guide shows how to build it from a checkout.
Version 0.2.0 is alpha. What works today and what is planned:
Parts of the manager are being redesigned. The guide's overview lists each change with its issue.
darkpyonix/kernel/ the `darkpyonix` Python package (stdlib only): runtime API, notebook parser (format/) and the kernel process (_*.py, `python -m darkpyonix`) darkpyonix/manager/ the manager and the darkpyonix CLI (Rust workspace) darkpyonix/hub/worker/ darkpyonix.dev hub API (Cloudflare Worker, TypeScript) darkpyonix/hub/server/ relay.darkpyonix.dev iroh relay host (Rust) docs/ design documents and the user guide tests/ Python test suite License Apache License 2.0 (SPDX Apache-2.0). See LICENSE.
agents jupyter kernel machine-learning notebook
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.




