Mady
Mady2mo ago

issue with plotly express chart not registering change to switch

I have a plotly express scatter_mapbox that displays different values (a complete or filtered dataframe) based on the value of a mo.ui.switch. For some reason, the chart does not re-render on switch value change; instead, it is toggling after I toggle the switch and then switch the view mode of the notebook (i.e. use the toggle app view button). This is the notebook in reference: https://marimo.io/p/@roboboosters/fin-frc
marimo | FIRST Indiana Robotics FRC Teams
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
5 Replies
Mady
MadyOP2mo ago
To replicate the issue: 1. navigate to the linked notebook 2. toggle show inactive teams to on 3. note that no red dots appear on the map 4. click the three dots in the top right and uncheck show code 5. note that red dots now appear on the map
Myles Scolnick
Myles Scolnick2mo ago
It might be a bug that we fixed in the library but have not shipped to the community cloud. I can release to the cloud tomorrow (or maybe @Akshay could do it)
Akshay
Akshay2mo ago
Mady, I just realized that our latest release is not compatible with WASM. Need to merge a quick fix before I can upgrade the version on cloud New version should be up on cloud
Mady
MadyOP2mo ago
Yes, that fixed it! You guys are the best, thank you!
Akshay
Akshay2mo ago
you're welcome!