-
Notifications
You must be signed in to change notification settings - Fork 68
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
Make all Element with Template pickable natively #144
Conversation
(needed for unpickling a folium Map)
for more information, see https://pre-commit.ci
…tienGauthier/branca into fix/unpickling_children_loss
for more information, see https://pre-commit.ci
…tienGauthier/branca into fix/unpickling_children_loss
for more information, see https://pre-commit.ci
There was a problem hiding this 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!
…tienGauthier/branca into fix/unpickling_children_loss
_template is already in self, no need to update it if not in state.
Ok here too ! |
There was a problem hiding this 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.
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).