Skip to content

docs(panel-reactivity-docstring) emphasizing in docstring the non reactivity of mo.ui.panel - #10067

Merged
mscolnick merged 2 commits into
marimo-team:mainfrom
Felipenguim:docs/panel-reactivity-docstring
Jul 9, 2026
Merged

mscolnick merged 2 commits into
marimo-team:mainfrom
Felipenguim:docs/panel-reactivity-docstring

Conversation

@Felipenguim

Copy link
Copy Markdown
Contributor

📝 Summary

Closes #8296

The docstring for mo.ui.panel had a confusing example. It doesn't emphasis that this componentit does not trigger marimo's cross-cell reactivity in other cells.

This PR rewrites the docstring example to make that distinction explicit:

  • The first cell shows Panel-internal reactivity that does update live
  • The second cell clarifies that reading .value gives the current value, but the cell will not re-run when the widget changes.
  • If it would help, I'm willing to add more documentation about mo.ui.panel, like a page in the docs website.

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

@vercel

vercel Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 2, 2026 6:16pm

Request Review

@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Felipenguim

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@mscolnick mscolnick added the bug Something isn't working label Jul 9, 2026
@mscolnick
mscolnick merged commit e785e95 into marimo-team:main Jul 9, 2026
40 of 42 checks passed
williambdean pushed a commit to williambdean/marimo that referenced this pull request Sep 6, 2026
…ctivity of mo.ui.panel (marimo-team#10067)

## 📝 Summary

<!--
If this PR closes any issues, list them here by number (e.g., Closes
marimo-team#123).

Detail the specific changes made in this pull request. Explain the
problem addressed and how it was resolved. If applicable, provide before
and after comparisons, screenshots, or any relevant details to help
reviewers understand the changes easily.
-->
Closes marimo-team#8296

The docstring for `mo.ui.panel` had a confusing example. It doesn't
emphasis that this componentit does not trigger marimo's cross-cell
reactivity in other cells.

This PR rewrites the docstring example to make that distinction
explicit:

- The first cell shows Panel-internal reactivity that does update live
- The second cell clarifies that reading `.value` gives the current
value, but the cell will **not** re-run when the widget changes.
- If it would help, I'm willing to add more documentation about
mo.ui.panel, like a page in the docs website.

## 📋 Pre-Review Checklist
<!-- These checks need to be completed before a PR is reviewed -->

- [x] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [x] Any AI generated code has been reviewed line-by-line by the human
PR author, who stands by it.
- [x] Video or media evidence is provided for any visual changes
(optional). <!-- PR is more likely to be merged if evidence is provided
for changes made -->

## ✅ Merge Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [x] Documentation has been updated where applicable, including
docstrings for API changes.
- [x] Tests have been added for the changes made.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 93d1fe4e Deployed Jul 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation regarding mo.ui.panel() and also give an example of what to expect to work.

2 participants