Fix ScatterWidget circle_brush initialization order in AnyWidget runtimes#36
Merged
koaning merged 2 commits intokoaning:mainfrom Apr 23, 2026
Merged
Conversation
Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
koaning
approved these changes
Apr 23, 2026
Owner
koaning
left a comment
There was a problem hiding this comment.
Fair enough, had a look and I agree this does fix a few things.
koaning
added a commit
that referenced
this pull request
Apr 23, 2026
* Bump version to 0.5.1 Patch release covering the circle_brush initialization fix (#36) so non-Jupyter AnyWidget runtimes no longer hit a ReferenceError on render. * Refresh demo.py marimo metadata Bumps the __generated_with marker after opening the notebook in a newer marimo release; no functional changes.
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.
Description:
Issue #34 reported a frontend initialization failure in ScatterWidget in non Jupyter AnyWidget runtimes because class button initialization could touch circle_brush before it was initialized.
This PR updates ScatterWidget initialization to avoid referencing circle_brush before declaration in both source and bundled frontend files. The behavior stays the same after initialization, but the widget no longer raises a startup ReferenceError in AnyWidget runtimes.
It also adds a focused regression test for the circle_brush init order.
Closes #34.
Checklist:
pytest -q.pytest -q tests/test_scatter_widget_init_order.py.The validation screenshot showing the earlier error is gone: