fuenfundachtzig
fuenfundachtzig•7mo ago

Hi! Does anybody know if it is possible

Hi! Does anybody know if it is possible to make Folium's way of adding markers to a map compatible with Marimo's dependency checker? I would like cell 3 to update when a change of the slider in cell 2 causes an update of the markers shown on the map (cell 5).
No description
4 Replies
fuenfundachtzig
fuenfundachtzigOP•7mo ago
(You can ignore the on_change in cell 2 -- that doesn't help.)
dmad
dmad•7mo ago
I got follium with markers working here: https://discord.com/channels/1059888774789730424/1227373488780742867 Oh, didn't really read the whole post. I think you can use state for this- just trigger update in 5 and include in 3
fuenfundachtzig
fuenfundachtzigOP•7mo ago
Yes, I had a look at your project while I was working on this 🙂 In the end I just added an assignment (m2 = m) to cell 5 and changed cell 3 to output m2.
dmad
dmad•7mo ago
That works too!