Skip to content

docs: update 'Plotting with Marsilea' in how-to - #4311

Open
Mr-Milk wants to merge 1 commit into
scverse:mainfrom
Mr-Milk:doc/update-marsilea-notebook
Open

docs: update 'Plotting with Marsilea' in how-to#4311
Mr-Milk wants to merge 1 commit into
scverse:mainfrom
Mr-Milk:doc/update-marsilea-notebook

Conversation

@Mr-Milk

@Mr-Milk Mr-Milk commented Aug 21, 2026

Copy link
Copy Markdown

As discussed with @flying-sheep in scverse/ecosystem-packages#398, Marsilea now supports the accessor syntax for anndata. So I updated the notebook to incorporate the newest changes.

The old notebook was run on Marsilea 0.3.x and three examples are broken. These are also fixed.

Two new sections on significance annotation and combining plots are added.

Replace session_info with sc.logging.print_header(), matching the other how-tos.

Rewrite the how-to against the anndata.acc reference API added in marsilea
0.8. The AnnData binds to the board once and arrays are named with `A`,
rather than pulled out by hand. Group order comes from the pandas
categories, so most `order=` arguments are no longer needed.

Add two sections: significance annotation with `annotate_stats`, and
combining boards with `+`.

Fix three things that were broken on the published page:

- the stacked violin raised `ValueError` from `zip(..., strict=True)`
- the tracksplot had no gene labels, its annotation board was created and
  never filled
- the tracksplot and stacked violin outputs predated their source, so the
  published figures did not match the published code

Replace `session_info` with `sc.logging.print_header()`, matching the other
how-tos.

Requires marsilea >= 0.8.1.
Copilot AI lite review requested due to automatic review settings August 21, 2026 11:52
@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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.06%. Comparing base (532d7b1) to head (fedc93e).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4311      +/-   ##
==========================================
+ Coverage   80.01%   80.06%   +0.05%     
==========================================
  Files         132      133       +1     
  Lines       13397    13406       +9     
==========================================
+ Hits        10719    10733      +14     
+ Misses       2678     2673       -5     
Flag Coverage Δ
hatch-test.low-vers 77.99% <ø> (-0.24%) ⬇️
hatch-test.pre 79.93% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

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.

2 participants