Skip to content

docs: add common errors troubleshooting tutorial - #22

Open
timtreis wants to merge 2 commits into
mainfrom
feat/common-errors
Open

docs: add common errors troubleshooting tutorial#22
timtreis wants to merge 2 commits into
mainfrom
feat/common-errors

Conversation

@timtreis

Copy link
Copy Markdown
Member

Summary

Adds tutorials/common_errors.ipynb — a troubleshooting reference that turns spatialdata-plot's up-front input validation (the 0.4.0 error-hardening work) into a learnable page. Each section triggers a common error via try/except on blobs, prints the exact message, and gives the one-line fix.

Covers:

  • element not found (KeyError)
  • colouring by a column with no annotating table (KeyError)
  • invalid image channel (ValueError, which lists the valid channels)
  • wrong-length per-channel norm list (ValueError)
  • grayscale requires exactly 3 channels (ValueError)
  • invalid PercentileNormalize bounds (ValueError)

Executed against spatialdata-plot v0.4.1, committed with outputs. Adds the gallery card + toctree + a terminal-style thumbnail.

Final notebook of the documentation-expansion series from the 0.4.0/0.4.1 gap analysis (P3).

New tutorials/common_errors.ipynb turning spatialdata-plot's up-front input
validation (0.4.0 hardening) into a troubleshooting reference. Each section
triggers a common error via try/except on the blobs dataset, prints the exact
message, and gives the one-line fix:

- element not found (KeyError)
- colouring by a column with no annotating table (KeyError)
- invalid image channel (ValueError, lists valid channels)
- wrong-length per-channel norm list (ValueError)
- grayscale requires exactly 3 channels (ValueError)
- invalid PercentileNormalize bounds (ValueError)

Executed against spatialdata-plot v0.4.1; committed with outputs. Adds the
gallery card + toctree + a terminal-style thumbnail. Closes P3 of the
doc-coverage analysis.
@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 18, 2026

Copy link
Copy Markdown

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

Built from 6b06016; redeployed on every push.

github-actions Bot pushed a commit that referenced this pull request Aug 18, 2026
…uous colour/column cases, annotate percentile-bound rules
github-actions Bot pushed a commit that referenced this pull request Aug 19, 2026
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