python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
118 stars 66 forks source link

Remove _env instance attribute from Element #145

Closed Conengmo closed 1 year ago

Conengmo commented 1 year ago

Same like in https://github.com/python-visualization/folium/pull/1817, remove the environment saved as class instance attribute on Element.

I suspect this was added early on because they expected we would load templates from the filesystem. Instead we now make templates dynamically from strings. So there's no need to store this on class instances. If somebody still wants to use it, we still have ENV as module variable available.

Conengmo commented 1 year ago

Almost forgot about this one :p thanks for the review Martin!