Skip to content

Docs: listen_to isn't needed for embedding-atlas, mosaic, quak, or mols2grid - #517

Merged
cpsievert merged 1 commit into
mainfrom
docs-listen-to-docstrings
Dec 2, 2026
Merged

cpsievert merged 1 commit into
mainfrom
docs-listen-to-docstrings

Conversation

@cpsievert

Copy link
Copy Markdown
Collaborator

The API reference for render_embedding_atlas, render_mosaic_widget, render_quak, and render_mols2grid told users their accessors were opt-in via listen_to (e.g. listen_to=["predicate"]). They never were: every accessor on these renderers is always on, so users following the docs were adding a no-op, and users who skipped it might wonder why things still worked.

The docstrings now say listen_to is accepted for consistency with other renderers but isn't needed (and for mols2grid, that clicked() needs clicks=True instead).

These renderers define their own __init__, so #483 threaded listen_to through each by hand and copied the opt-in paragraph along with it. Docstring-only change; listen_to is unreleased.

First in a stack: the next PRs improve the opt-in error for selected_rows() and let listen_to name selected_rows directly.

…ls2grid

Their docstrings said these renderers' accessors were opt-in via
listen_to, but none of them are: every accessor is always on.
@netlify

netlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for shinywidgets canceled.

Name Link
🔨 Latest commit b8b2387
🔍 Latest deploy log https://app.netlify.com/projects/shinywidgets/deploys/6b0f6157332065f73882bc91

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request December 2, 2026 00:10 Inactive
@cpsievert
cpsievert requested a balanced review from Copilot December 2, 2026 16:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the widget renderer documentation clarifications.

No open issues 🎉

What changed in this PR

Corrects API documentation for four widget renderers without changing runtime behavior.

Changes:

  • Clarifies that listen_to is unnecessary for embedding-atlas, mosaic, quak, and mols2grid because their accessors are always enabled.
  • Clarifies that mols2grid’s clicked() requires clicks=True, not listen_to.
File Description
shinywidgets/​_render_widget.py Corrects listen_to parameter docstrings for four renderers.

Review effort: Balanced

@cpsievert
cpsievert added this pull request to stack #523 December 2, 2026 16:35
@cpsievert
cpsievert merged commit cd0b438 into main Dec 2, 2026
19 checks passed

This branch was previously deployed

1 inactive deployment
pull request — b8b23879 Deployed Dec 2, 2026 by github-actions[bot]
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