feat: multi-panel colouring tutorial + repo hygiene bumps - #14
Merged
Conversation
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.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
📖 Docs preview: https://scverse.org/spatialdata-plot-tutorials/pr-14/gallery.html Built from 7eadbf3; redeployed on every push. |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-stylecolor=[...]forrender_labels/render_shapes(feature landed in spatialdata-plot 0.4.1, scverse/spatialdata-plot#686):render_shapesshow(ncols=...)grid controlpalette/cmap/normacross panelsBuilt on the synthetic
blobsdataset, mirrors thecolor_and_palettestructure, executed end-to-end against 0.4.1. Wired intotutorials/index.md(gallery card + toctree) with a 549×491 thumbnail matching the existing cards' aspect ratio.Hygiene (separate commits)
spatialdata-plot-notebooks→spatialdata-plot-tutorials(package name, Source URL, kernel name, clone instructions). The repo was renamed; these worked only via GitHub's redirect.>=3.12(the library dropped 3.11 in 0.4.1, Require Python >=3.12, drop 3.11 spatialdata-plot#743).spatialdata-plotpin to>=0.4.1(exec extra + pixi) so the multi-panel feature is guaranteed present.Notes / follow-ups
docs/gallery.mdstill linksgithub.com/scverse/spatialdata-plot-notebooks— needs a one-line follow-up inscverse/spatialdata-plot.PercentileNormalize,as_pointsfast rendering, shape styling (fill/outline/alpha).