Skip to content

Conversation

@Conengmo
Copy link
Member

@Conengmo Conengmo commented Oct 13, 2023

See comment on #1813 (comment).

Storing the Jinja2 Environment on class instances doesn't make sense to me. It doesn't bring any benefit. It takes up space in our code and in the class instances. And we have to explicitly remove it when pickling objects.

Remove the _env class instance attributes from Folium. Use the ENV module variable instead.

When we stop using the tile layer templates, we can get rid of this fully. But this PR already removes ENV from the folium module.

We can do the same on Branca.

@Conengmo Conengmo merged commit 7268a13 into python-visualization:main Oct 16, 2023
@Conengmo Conengmo deleted the remove-env-attributes branch October 16, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants