Make Element class (branca.element.Element) pickleable by stripping its ._env attribute when pickling and re-adding it when unpickling. This should address two related issues in folium: python-visualization/folium#878 and python-visualization/folium#796 and has the added implication of being able to create elements concurrently, e.g. using multiprocessing.Pool.
Make
Element
class (branca.element.Element
) pickleable by stripping its ._env attribute when pickling and re-adding it when unpickling. This should address two related issues infolium
: python-visualization/folium#878 and python-visualization/folium#796 and has the added implication of being able to create elements concurrently, e.g. usingmultiprocessing.Pool
.