I'm looking to create a highly interactive map for the user. Not only an interactive map in the sense of visualization, where the user can move, zoom and click on the map to see a tooltip appear. But also where the user can for example click on an area (a polygon) and a python method is executed to cut the area into squares. A way to integrate the execution of python code in the map according to the user's interactions.
Is there a python solution to do this ? A tool or a specific library.