Skip to content

feat(napari): glasbey-on-dark label LUT + resolvable napari extra#38

Merged
lguerard merged 1 commit into
mainfrom
feat/napari-glasbey-lut
Jun 25, 2026
Merged

feat(napari): glasbey-on-dark label LUT + resolvable napari extra#38
lguerard merged 1 commit into
mainfrom
feat/napari-glasbey-lut

Conversation

@lguerard

Copy link
Copy Markdown
Contributor

Summary

  • view_in_napari now colours Labels with colorcet glasbey_dark (glasbey on dark) by default — applied to both explicit and auto-loaded label layers. New label_colormap arg takes any colorcet palette (e.g. glasbey_light) or None for napari's default.
  • Build a CyclicLabelColormap from the palette; guarded so a missing colorcet just logs and falls back.

Deps (napari extra)

Make patchworks[napari] actually resolve under recent pins:

  • numpy<2.5 — napari/numba don't support numpy 2.5 yet
  • ipykernel<7 — napari-console requires <7
  • colorcet — the glasbey LUTs

Scoped to the napari extra, so core patchworks stays unconstrained.

For an existing env: pixi add "numpy<2.5" "ipykernel<7" and pixi add --pypi colorcet.

🤖 Generated with Claude Code

Default the Labels colormap in view_in_napari to colorcet's
"glasbey_dark" (many distinct, high-contrast colours on dark), applied to
both explicit and auto-loaded label layers. New label_colormap argument
accepts any colorcet palette or None for napari's default.

Pin the napari extra so it actually resolves: numpy<2.5 and ipykernel<7
(napari/numba/napari-console caps), and add colorcet for the LUTs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lguerard lguerard merged commit e5cffbb into main Jun 25, 2026
1 of 2 checks passed
@lguerard lguerard deleted the feat/napari-glasbey-lut branch June 25, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant