Leaflet or ipyleaflet?

Have you tried using the Folium library which provides a Python API to Leaflet.js? It is a really fantastic library. I build the maps in Jupyter, and when I want to share them, I just save them as an HTML file. If you want to use that saved map in Anvil, you can display it in an iframe.

Here is a link to a clone that demonstrates displaying a Folium/Leaflet.js map inside of Anvil:

1 Like