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

Make all Element with Template pickable natively #144

Merged

Conversation

BastienGauthier
Copy link
Contributor

@BastienGauthier BastienGauthier commented Oct 12, 2023

Add the template_str attribute to be able to recover the Element after unpickling thanks to __setstate__ (needed to pickle Map in folium python-visualization/folium#1812).

@BastienGauthier BastienGauthier changed the title Fix/unpickling children loss Make all Element with Template pickable natively Oct 13, 2023
Copy link
Member

@Conengmo Conengmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great how you got this change down to just the stuff in Element!

branca/element.py Outdated Show resolved Hide resolved
branca/element.py Outdated Show resolved Hide resolved
branca/element.py Outdated Show resolved Hide resolved
@BastienGauthier
Copy link
Contributor Author

Ok here too !

Copy link
Member

@Conengmo Conengmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great how this turned out! Thanks for the journey @BastienGauthier.

@Conengmo Conengmo merged commit 655382e into python-visualization:main Oct 16, 2023
11 checks passed
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.

None yet

2 participants