Repository navigation
feat: show the topic number on each bubble - #53
Conversation
Raise the dev floor of marimo to 0.25.1 and pin ty 0.0.84. Upgrade every locked package. The runtime bounds stay as they are. marimo 0.25 pins Pyodide 314, which ships Python 3.14 and pandas 3.0.2. Supersedes #47. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A browser test of the export on Pyodide 314 passed. Both demos fit, the topic selection works, and the lazy package download returns the ZIP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsEUVKgZPLky1kHXnU2aBW
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
36c50e1 to
2e92699
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Layer-level opacity makes unselected topic numbers difficult to read.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds topic-number labels to map bubbles for clearer identification and accessibility.
Changes:
- Layers numbered text over topic bubbles.
- Adds tooltip and assistive description.
- Updates specifications and chart tests.
| File | Description |
|---|---|
simple_topic_modeling/plots.py |
Adds numbered labels and chart description. |
tests/test_plots.py |
Tests layered bubbles and labels. |
SPECS.md |
Documents topic-number labels. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| return ( | ||
| alt.layer(bubbles, numbers, data=frame, title="Topic map") | ||
| .encode( | ||
| **_emphasis(selected), |
There was a problem hiding this comment.
Fixed in d44ad26. _emphasis now applies to the bubble layer only. The number layer encodes text alone, so every number keeps full contrast. A test checks that the number layer has no fillOpacity.
|
@coderabbitai review |
|
The marimo version fixes the Pyodide version of the export. A floor let uv lock --upgrade move it without a browser test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsEUVKgZPLky1kHXnU2aBW
A plain app.run() takes only the path without a result, so a missing name in the result view passed the gate. tests/test_notebook.py checks that some cell returns each cell parameter. It runs the result view with the fitted newspaper demo and the fitted book demo. The CI Notebook job runs the file instead of the inline script. Refs #46. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README.md and CONTRIBUTING.md still showed the plain app.run() script. That script skips the result view, so the guides now run tests/test_notebook.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsEUVKgZPLky1kHXnU2aBW
The topic map is now a layer chart. A text layer writes the topic number on each bubble, so a reader can find a topic without its colour. The data sits on the layer chart, so the click selection from #35 still works. The chart also gets a description for assistive technology. Refs #31, #46. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The selection dimmed the whole layer chart, so the numbers of the other topics faded with their bubbles. The emphasis now applies to the bubble layer only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EsEUVKgZPLky1kHXnU2aBW
8d10331 to
e52038b
Compare
2e92699 to
d44ad26
Compare

Summary
The topic map now shows the topic number on each bubble. A reader can find a topic without its colour. This is an open finding of #31 and an item of #46.
plots.topic_mapreturns a layer chart: the bubbles and a text layer with the number.map_chart.valuestill filters. The click selection from feat: share one selected topic across views #35 works.Test
mo.ui.altair_chart(topic_map(...))._convert_value(...)returns the clicked row.Stack
chore/deps→maintest/notebook-gatefeat/topic-numbersfeat/map-explanationsfeat/zip-figureschore/release-prepMerge from the bottom up.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EsEUVKgZPLky1kHXnU2aBW