Get help from the marimo community

Updated 4 months ago

mo.ui.plotly only updates with new selection

At a glance

The community member is using mo.ui.plotly to get a list of selected dots on a map and display the corresponding data points in a table below. However, when they clear the selection by double-clicking on the map, the list of dictionaries returned stays the same and does not clear. Another community member was unable to reproduce the issue, and the original poster provided a link to an example. The community members discussed the issue, with one noting it was an existing problem in Plotly, and another suggesting a potential workaround. The original poster eventually found and fixed the bug, and the community members expressed their appreciation.

Useful resources
I am using mo.ui.plotly to get a list of selected dots on a map and display the corresponding datapoints in a table below. However, if I make a selection, then double click on the map to clear the selection, the list of dicts returned stays the same (doesn't clear).
M
M
10 comments
Do you have an example? I just tried this and cannot reproduce it
thank you! looking
i found the bug, will fix this, thanks!
Hey Mady - unfortuanely this is an existing issue in plotly. https://github.com/plotly/react-plotly.js/issues/257
i may have a way around this
probably just on me for not using a more correct api
Thanks for looking into this! Please let me know if there's anything I need to do.
should be all good now! i just checked out your app and looks like its working
This is fantastic, thank you so much!
Add a reply
Sign up and join the conversation on Discord