Skip to content

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!

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

2 participants