Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove _env instance attributes #1817

Merged
merged 4 commits into from
Oct 16, 2023

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
12 checks passed
@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