Repository navigation
Added
- On-demand gene loading and the 8-gene picker.
milume.peek(adata)opens with gene names only; the browser fetches a gene's normalized sparse column from the kernel the first time it is coloured, then keeps it in an LRU cache (128 MiB). On a 170,057-cell × 18,028-gene matrix at 10% density (Atera WTA breast scale), the kernel's peak extra memory from construct through comm-open drops from about 9.6 GiB (2.0.0, extrapolated from 0.96 GiB and 1.88 GiB measured at 1/10 and 1/5 of the cells) to 77 MiB measured at full scale, and the gene part of the comm-open message drops from about 3.1 GiB to 0.3 MiB. The 2.0.0 path OOM-killed the Jupyter kernel on that dataset.genes=[...]still restricts the catalog and preloads it when it packs under 64 MiB; a larger list loads on demand with aUserWarning. Pick up to 8 genes: up to three blend one colour channel each; four or more colour by one combined value with Mean / Median / Max under the gene field. Fetching a gene from CSRadata.Xbinary-searches each cell's sorted column indices (about 47 ms vs 545 ms per gene on that matrix; #241, #248, #253). - The
use-milumeskill. One-line install vianpx skills add ckmah/milume --skill use-milume,python -m milume.skill install(copies the version-matched file from the wheel into.agents/skills/use-milume/SKILL.md), or the Claude Code marketplace (/plugin marketplace add ckmah/milume, thenuse-milume@milume)..claude-plugin/plugin.jsonexposes only that skill; keep itsversionin sync withmilume.__version__when releasing (#338).
Fixed
- The Inspect (I) shortcut works with the pointer over the map (#364, #362).
- molab demo notebooks include explicit "click Run all" guidance (#366, #361).
- Vertex-only lasso and polygon selections populate Measure category counts instead of "No category counts in this scope" (#371, #370).
- Pressing Escape in the Explore genes picker only closes the popup; it no longer clears every picked gene when the popup was already closed (#252).
- On Python 3.14,
uv add milumewithmatplotlib>=3.11.2no longer fails building ancients3fs0.3.5; declares3fs>=2024.1(#350).
Changed
- Lighter core install.
matplotlib,polars, andleidenalg(andigraphwith it) are no longer installed bypip install milume. Category columns use pandas categorical codes (same labels, order, and colours); lasso hit-testing uses a numpy port of matplotlib's point-in-path test. Tab10/tab20 palettes are hardcoded with the same hex values. Demo notebooks and the Squidpy niche recipe still needleidenalgwhere they callsc.tl.leiden. - Dependency floors.
spatialdata>=0.7.3(>=0.8.0 on Python 3.12+ so anndata 0.13 cannot pair with broken 0.7.3).pyarrow>=16is declared for cell-polygon parquet.s3fs>=2024.1on Python 3.14. - Smaller sdist. The source distribution no longer ships
website/, README screenshots, Playwright snapshots, or vendored.agents//.cursor/config (~60 MB to ~4.3 MB). Wheel contents unchanged. - Minified widget bundle.
milume/static/bundled/landmarks.mjsships minified (5.17 → 3.99 MB raw; 1.41 → 1.24 MB gzip) (#318). - Inspect contrast default. When
contrast_limitsis omitted, the upper limit is the max of the coarsest pyramid level instead of the 99.5th percentile (colon A2 default goes from(0, 171)to(0, 249)).
Removed
- The
milume[demo]pip extra. Use each demo notebook's PEP 723 inline script header, oruv sync --group demofrom a checkout. - Internal synced traits
gene_formatandgene_values(not documented public API). Withgenes=Nonenothing is preloaded; preloadedgenes=[...]always ships sparse CSC viagene_csc_*traits. The catalogue traitgene_columnsis renamedgene_nameswith no alias (internal, not in the notebook API).
Docs
- Squidpy colour recipes, Diátaxis restructure (how-to, tutorials, reference), Datasets and Concepts pages, and demo-tier loader notes (#343, #354, #339).
Full Changelog: v2.0.0...v2.1.0