You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to develop a Shiny Python app to visualize risks on a leaflet map.
A lot of things are working well, but some things we cannot seem to get to work.
What I Did
I went back to the example ipyleaflet app from the README here and tried to include a popup. The popup shows, but I couldn't figure out how I am supposed to set the child element to get any content into the popup. I tried using HTML() from ipywidgets, I tried registering that with register_widget() and a few other things, but the result was always that either the map would not load anymore, or I would get an error like _send_error_response: The 'child' trait of a Popup instance expected a DOMWidget or None
Description
We are trying to develop a Shiny Python app to visualize risks on a leaflet map.
A lot of things are working well, but some things we cannot seem to get to work.
What I Did
I went back to the example
ipyleaflet
app from the README here and tried to include a popup. The popup shows, but I couldn't figure out how I am supposed to set thechild
element to get any content into the popup. I tried usingHTML()
fromipywidgets
, I tried registering that withregister_widget()
and a few other things, but the result was always that either the map would not load anymore, or I would get an error like_send_error_response: The 'child' trait of a Popup instance expected a DOMWidget or None
Do you know of any way that I might get this to work?
The text was updated successfully, but these errors were encountered: