Skip to content

feat: multi-panel colouring tutorial + repo hygiene bumps - #14

Merged
timtreis merged 5 commits into
mainfrom
feat/multi-panel-color-tutorial
Aug 13, 2026
Merged

feat: multi-panel colouring tutorial + repo hygiene bumps#14
timtreis merged 5 commits into
mainfrom
feat/multi-panel-color-tutorial

Conversation

@timtreis

Copy link
Copy Markdown
Member

What

Adds the first of the 0.4.1 feature tutorials — multi-panel colouring — and folds in three small repo-hygiene bumps that block/accompany it.

New tutorial

tutorials/multi_panel_color.ipynb — scanpy-style color=[...] for render_labels/render_shapes (feature landed in spatialdata-plot 0.4.1, scverse/spatialdata-plot#686):

  • one colouring → many panels
  • mixing categorical (legend) + continuous (colourbar), per-panel autoscaling
  • multi-panel render_shapes
  • show(ncols=...) grid control
  • shared palette/cmap/norm across panels

Built on the synthetic blobs dataset, mirrors the color_and_palette structure, executed end-to-end against 0.4.1. Wired into tutorials/index.md (gallery card + toctree) with a 549×491 thumbnail matching the existing cards' aspect ratio.

Hygiene (separate commits)

  • chore: align repo naming spatialdata-plot-notebooksspatialdata-plot-tutorials (package name, Source URL, kernel name, clone instructions). The repo was renamed; these worked only via GitHub's redirect.
  • build: require Python >=3.12 (the library dropped 3.11 in 0.4.1, Require Python >=3.12, drop 3.11 spatialdata-plot#743).
  • build: bump the spatialdata-plot pin to >=0.4.1 (exec extra + pixi) so the multi-panel feature is guaranteed present.

Notes / follow-ups

  • Commits are split (naming / py312 / pin / notebook) for independent review.
  • Out of scope (separate repo): the library's docs/gallery.md still links github.com/scverse/spatialdata-plot-notebooks — needs a one-line follow-up in scverse/spatialdata-plot.
  • Three more 0.4.1 tutorials planned next: PercentileNormalize, as_points fast rendering, shape styling (fill/outline/alpha).

The repo was renamed from -notebooks to -tutorials; update the
package name, Source URL, Jupyter kernel name, and clone/setup
instructions to the canonical name (previously worked only via
GitHub's redirect).
spatialdata-plot dropped Python 3.11 in 0.4.1 (scverse/spatialdata-plot#743);
match it here. Bumps requires-python, the pixi python pin, and ruff's
target-version. CI already runs 3.13.
The multi-panel color=[...] tutorial needs the scanpy-style multi-panel
feature (scverse/spatialdata-plot#686), first released in 0.4.1. Update
both the exec extra and the pixi pypi dependency.
New tutorials/multi_panel_color.ipynb demonstrating scanpy-style
color=[...] for render_labels/render_shapes: one-to-many colourings,
mixing categorical and continuous, ncols grid control, and shared
palette/cmap across panels. Uses the synthetic blobs dataset, mirrors
the color_and_palette structure, and executes against spatialdata-plot
0.4.1. Adds a gallery card + toctree entry and a 549x491 thumbnail
matching the existing cards.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

📖 Docs preview: https://scverse.org/spatialdata-plot-tutorials/pr-14/gallery.html

Built from 7eadbf3; redeployed on every push.

github-actions Bot pushed a commit that referenced this pull request Aug 10, 2026
Regenerate the gallery thumbnail with larger titles, legend, and
colorbar labels; drop the pixel-tick frame and crop outer margins so
the panels fill the card.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
github-actions Bot pushed a commit that referenced this pull request Aug 13, 2026
@timtreis
timtreis merged commit 9482378 into main Aug 13, 2026
4 checks passed
@timtreis
timtreis deleted the feat/multi-panel-color-tutorial branch August 13, 2026 17:43
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