labnotes
Browse experiment designs, notes, and run data from a folder.
uvx labnotes server
A project's root is the folder holding its .labnotes.toml. labnotes init
writes one with the default layout:
[experiments]
path = "{experiment}"
[files]
path = "{experiment}/files/"
[runs]
path = "{experiment}/runs/{run}"
Each path is relative to the root. {experiment} and {run} stand for folder
names: the experiments path must use {experiment}, and the runs path both.
labnotes reads the file from the working folder, or from the path given with
-c.
labnotes experiments reads three tables from those paths:
experiments:name, andconfig, the experiment'sexperiment.tomlas JSON. An experiment is a folder matching the experiments path that holds anexperiment.toml, files or runs.files:experiment,filename,path,ctime,mtime.runs:experiment,id,folder,created,ended,exit_code,error,stdout,stderr, andparamsas JSON, read from each run folder'srun.json.
Keys come from folder names, so renaming a folder renames its rows on the next read. Paths are relative to the root, and times are UTC ISO 8601.
labnotes experiments # name, last_run, created, files, runs
labnotes experiments foo # the same, plus config
labnotes experiments foo runs # foo's runs, oldest first
Each takes --format table (the default) or --format json.
labnotes experiments foo run runs foo from its experiment.toml, in the
experiments folder:
command = "uv run scripts/study.py --output {run_dir}"
repeats = 5
[params]
model = ["opus", "sonnet"]
effort = ["low", "high"]
Each combination of [params] runs repeats times, round-robin. Only runs
that exit 0 count, so running again fills in what failed or never ran.
Each run gets a new run folder. command runs in a shell from the root, with
{run_dir} replaced by the run folder's absolute path. Pass it to the
script so it writes its outputs there.
Each param is appended as --name value, with the name as written (use
source-language for a --source-language flag), booleans as 0 or 1, and lists
and tables as JSON. labnotes writes run.json (params, created, ended, exit
code), stdout.log and stderr.log to the run folder.
In a terminal, run shows a live table of runs (status and time) and stays
open when they finish; q quits. Elsewhere, or with --no-tui, it prints a
line per event instead.
--concurrency Nruns N at a time (default 1).-e PATHreads another file instead ofexperiment.toml.- Ctrl-C stops the running scripts and records their end. A second Ctrl-C kills them.
- A second
runof the same experiment fails while the first holds the lock. - It exits 1 if any run failed.
labnotes server doesn't read .labnotes.toml yet. Give it the two folders
it uses with --experiments-folder and --data-folder:
--experiments-folderholds one subfolder per experiment, each with adesign.yaml(with astudykey) and any number of markdown notes.--data-folderholds the run data and a.dirsql.tomlthat declares arunstable with astudycolumn. An experiment's runs are the rows whosestudymatches its design's.
That serves a local site at http://127.0.0.1:8000: a table of experiments, and a page per experiment with its parameters, its notes, progress per cell of the design grid, and every run so far. Both folders are watched, so a reload shows new runs and edited notes.
design.yaml keys the site reads: study, fixed, varies (each key a list
of values), runs_per_cell, and completed_run, a SQL condition over the
runs table that marks a run as complete. Anything else shows up as-is.
-h/--host and -p/--port change where it listens; -h 0.0.0.0 (or a
Tailscale IP) serves beyond localhost. Every other uvicorn option passes
through: --reload, --workers, --proxy-headers, --root-path, the
--ssl-* set, and the rest. labnotes server --help lists them. LABNOTES_EXPERIMENTS_FOLDER and
LABNOTES_DATA_FOLDER can stand in for the folder flags.
Agent skill
npx skills add thekevinscott/labnotes
The skill tells a coding agent to run labnotes context, which prints a usage
guide for the installed version.
Metadata
Release files for labnotes 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labnotes-0.0.15.tar.gz | 100.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labnotes-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.8 kB
Release files / labnotes-0.0.15.tar.gz
| Download URL | labnotes-0.0.15.tar.gz |
|---|---|
| Size | 100.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00b9a9fae4a551473ba42bb1a23e0dd28955b3139ce070799232ff7efb033dc1
|
|
BLAKE2b-256 checksum How to use checksums |
03f4ad876b7fe5d3236cbb7668a8df8b809b3247a3623b430ca3b55beec385d9
|
| 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 18, 2026.
Transparency logRelease files / labnotes-0.0.15-py3-none-any.whl
| Download URL | labnotes-0.0.15-py3-none-any.whl |
|---|---|
| Size | 51.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54c66c3dc70d4354ecc6d42f22992d0a59799fcd42e1b978a67c1b1fad981e97
|
|
BLAKE2b-256 checksum How to use checksums |
fa91a1203517f326a63e71996576eb7d197b4345fb54a91114eef67b9ef1d29d
|
| 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 18, 2026.
Transparency log