A living catalogue for reproducible analyses: plain-text notebooks, content-hashed output caching, live HTML viewer.
Project description
jellycell
A living catalogue for reproducible analyses. Plain-text notebooks, content-addressed cell-output caching, live HTML viewer. Agent-friendly from day one.
Why jellycell
Jupyter notebooks are great for exploration and awful for everything after. They diff poorly, store outputs alongside code, make provenance opaque, and have no story for "which step produced this file?" — so analyses drift, results become unreproducible, and the notebook gets rewritten as a script anyway.
jellycell keeps the things that made notebooks useful (cell-level thinking, rich outputs, narrative + code interleaved) and fixes what made them painful:
- Source is plain Python. Notebooks are
.pyfiles in jupytext percent format with a PEP-723 dependency header. Diffable, greppable,uv run-able. No JSON-wrapped base64. - Outputs are content-addressed. Every cell's output is keyed on
(normalized source, declared + detected deps, lockfile-aware env hash). Re-run → cache hit. Change a cell → only that cell + its dependents re-execute. Outputs live in a sidecar cache, not in your commits. - Provenance is first-class. Every artifact is tagged with the cell + notebook + cache key that produced it.
jc.load("artifacts/foo.json")implicitly declares the dep edge. No hand-written DAGs. - HTML reports are free.
jellycell renderproduces byte-identical static HTML;jellycell viewserves the same pages live with SSE-backed reload while you edit. Side-nav, artifact browser, no build step. - Agents drop in without onboarding. Every CLI command supports
--jsonwith a versioned schema.jellycell prompt --writedropsAGENTS.md+CLAUDE.mdat your repo root so Cursor, Codex, GitHub Copilot, Claude Code, Aider, and every other AGENTS.md-native tool picks up the canonical agent guide with zero config.
Install
pip install jellycell # CLI only (no live viewer)
pip install 'jellycell[server]' # with `jellycell view`
Requires Python ≥ 3.11.
Quickstart
jellycell init my-project
cd my-project
# (Once per repo) drop AGENTS.md + CLAUDE.md so Cursor / Codex / Copilot / Claude Code read jellycell's agent guide
jellycell prompt --write
# Scaffold a notebook
jellycell new tour
# edit notebooks/tour.py in your editor of choice
# Run it — first time executes, subsequent runs hit the cache
jellycell run notebooks/tour.py
# Build static HTML reports
jellycell render notebooks/tour.py
# Or serve the live viewer with reload on save (requires [server] extra)
jellycell view
Inside a cell, the jc.* helpers work transparently:
# %% cell-id=tour:1 name=raw
import pandas as pd
df = pd.read_csv("data/sales.csv")
jc.save(df, "artifacts/sales.parquet")
# %% cell-id=tour:2 name=summary deps=raw
df = jc.load("artifacts/sales.parquet")
summary = df.describe()
jc.table(summary)
Change tour:1 → tour:2 invalidates on the next run. Edit nothing → both hit the cache.
Full docs: https://jellycell.readthedocs.io
Composition, not reinvention
jellycell's value is the composition, not the parts. We piggyback on the best tools in the Jupyter ecosystem:
| We piggyback on | For |
|---|---|
| jupytext | .py ↔ notebook IR |
| jupyter-client | kernel subprocess + messaging |
| nbformat | .ipynb round-trip |
| diskcache | content-addressed blob store |
| nbconvert (output helpers) | mime bundle → safe HTML |
| markdown-it-py + MyST plugins | markdown rendering |
| watchfiles + sse-starlette | live reload |
| pydantic + typer | CLI + config + schemas |
The bits we own are the ones that tie these together: tag vocabulary, cache key derivation, manifest format, per-cell orchestration, page shell, dep graph, agent guide. The full piggyback map is in docs/reference/architecture.md.
Is this for you?
Probably yes if:
- You write analyses in notebooks and wish they diffed.
- You keep rerunning a 10-minute cell to regenerate one plot.
- You need reviewers or agents to understand what produced what.
- You want a single project-wide HTML report, not a directory of disconnected
.ipynbfiles.
Probably no if:
- You want a fully-featured cloud notebook platform.
- You need real-time collaboration / multiplayer editing.
- Your workflow is tightly coupled to JupyterLab extensions.
Project structure
my-project/
├── jellycell.toml # project config
├── notebooks/ # .py notebooks (jupytext percent format)
├── data/ # inputs
├── artifacts/ # jc.save outputs
├── site/ # rendered HTML (jellycell render)
└── .jellycell/cache/ # content-addressed cache (gitignored)
Documentation
- Tutorial: getting-started
- Notebook format: file-format
- Project layout: project-layout
- CLI reference: cli-reference
- Agent guide: agent-guide — what
jellycell promptemits - Reference: docs/reference/ — living architecture + §10 contracts
- Historical spec: docs/spec/v0.md — frozen genesis / v1.0 build spec
Contributing
See CONTRIBUTING.md and docs/development/. Short version: bugfix PRs are welcome and bump patch; feature PRs should open an issue first. The three §10 contracts (--json schemas, cache key algorithm, agent guide content) are deliberate ceremonies — read docs/development/releasing.md before touching them.
License
Apache-2.0. See LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jellycell-1.1.2.tar.gz.
File metadata
- Download URL: jellycell-1.1.2.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54b897e0822effe7a503b7a668613e06f8af10ba0a446f2ce1bc0d5b98f66f7d
|
|
| MD5 |
aeca97a33e3eb77a40a6a39dc0b4565e
|
|
| BLAKE2b-256 |
008eb619e4c3f6f071726a10e7ebb7464c38f2d8a15947acc1a9da6ce2f8c7b7
|
Provenance
The following attestation bundles were made for jellycell-1.1.2.tar.gz:
Publisher:
release.yml on random-walks/jellycell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jellycell-1.1.2.tar.gz -
Subject digest:
54b897e0822effe7a503b7a668613e06f8af10ba0a446f2ce1bc0d5b98f66f7d - Sigstore transparency entry: 1340110752
- Sigstore integration time:
-
Permalink:
random-walks/jellycell@76ea875043c5e6abca0786883b8b63a31e636080 -
Branch / Tag:
refs/tags/v1.1.2 - Owner: https://github.com/random-walks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@76ea875043c5e6abca0786883b8b63a31e636080 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jellycell-1.1.2-py3-none-any.whl.
File metadata
- Download URL: jellycell-1.1.2-py3-none-any.whl
- Upload date:
- Size: 117.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d764f46c287de642bb613f558e82fd214ea46b295d5b3990e97dda4e28968b
|
|
| MD5 |
35f66df0277f78fa970f13858234e7b2
|
|
| BLAKE2b-256 |
a5b86c9a56e00adaa6563ac448a4185c64ea8fadbe81bf463471bc49aa26fcbc
|
Provenance
The following attestation bundles were made for jellycell-1.1.2-py3-none-any.whl:
Publisher:
release.yml on random-walks/jellycell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jellycell-1.1.2-py3-none-any.whl -
Subject digest:
18d764f46c287de642bb613f558e82fd214ea46b295d5b3990e97dda4e28968b - Sigstore transparency entry: 1340110760
- Sigstore integration time:
-
Permalink:
random-walks/jellycell@76ea875043c5e6abca0786883b8b63a31e636080 -
Branch / Tag:
refs/tags/v1.1.2 - Owner: https://github.com/random-walks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@76ea875043c5e6abca0786883b8b63a31e636080 -
Trigger Event:
push
-
Statement type: