darkpyonix
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
KeyboardInterruptin 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/.pynbfiles with# %%cells. They stay valid Python underpython 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.
Status
Version 0.2.0 is alpha. What works today and what is planned:
| Part | Status |
|---|---|
| Kernel: one per file, outlives managers, interrupt, run logs | implemented |
| Runtime API and notebook parser (this package) | implemented |
Rust manager and darkpyonix CLI |
implemented, built from source |
| Prebuilt CLI binary in a wheel | planned |
| VS Code and IntelliJ notebook renderers | planned (#22) |
| ash opening a shared kernel | planned (#20) |
| darkpyonix.dev hub | planned (#21) |
Parts of the manager are being redesigned. The guide's overview lists each change with its issue.
Documentation
- User guide (English and Korean): install, notebook files, the CLI, run logs, the manager API, editors and agents.
- Notebook file format
- Kernel wire protocol
- Manager HTTP API (OpenAPI)
- Architecture
Repository layout
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.
Metadata
Release files for darkpyonix 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| darkpyonix-0.2.0.tar.gz | 72.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| darkpyonix-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 157.2 kB
Release files / darkpyonix-0.2.0.tar.gz
| Download URL | darkpyonix-0.2.0.tar.gz |
|---|---|
| Size | 72.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56c4bcc7264a06f80c96b60ad04b406fd0450a5659daed48e13782d3267160d1
|
|
BLAKE2b-256 checksum How to use checksums |
743041cb75b5dfcd66476f01737210e3063608b435313d7e6ff8590b24e29932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
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.
Transparency logRelease files / darkpyonix-0.2.0-py3-none-any.whl
| Download URL | darkpyonix-0.2.0-py3-none-any.whl |
|---|---|
| Size | 84.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
888ce179d6fb1f0e276c5b076e04d9184ff6aa8fa956e685fba6d2a79300a762
|
|
BLAKE2b-256 checksum How to use checksums |
10020f063e905083ebb5aa37b89fca893e552faa7240c9191090c5648e5d4109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
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.
Transparency logSecurity for darkpyonix 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for darkpyonix-0.2.0.tar.gz
PyPI Publish Attestation
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.
Transparency logA 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.