Repository navigation
Docs: listen_to isn't needed for embedding-atlas, mosaic, quak, or mols2grid - #517
Merged
Merged
Conversation
…ls2grid Their docstrings said these renderers' accessors were opt-in via listen_to, but none of them are: every accessor is always on.
✅ Deploy Preview for shinywidgets canceled.
|
Contributor
There was a problem hiding this comment.
🟢 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_tois unnecessary for embedding-atlas, mosaic, quak, and mols2grid because their accessors are always enabled. - Clarifies that mols2grid’s
clicked()requiresclicks=True, notlisten_to.
| File | Description |
|---|---|
shinywidgets/_render_widget.py |
Corrects listen_to parameter docstrings for four renderers. |
Review effort: Balanced
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API reference for
render_embedding_atlas,render_mosaic_widget,render_quak, andrender_mols2gridtold users their accessors were opt-in vialisten_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_tois accepted for consistency with other renderers but isn't needed (and for mols2grid, thatclicked()needsclicks=Trueinstead).These renderers define their own
__init__, so #483 threadedlisten_tothrough each by hand and copied the opt-in paragraph along with it. Docstring-only change;listen_tois unreleased.First in a stack: the next PRs improve the opt-in error for
selected_rows()and letlisten_tonameselected_rowsdirectly.