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.
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.