-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Pickling object does not preserve opts
#6286
Comments
There's some differences in operations:
From ChatGPT: Plot ID: First dictionary: _plot_id: 4362542608 First dictionary: name='chain00873' First dictionary has three operations (one factory with kwargs={'kdims': [Dimension('XAXIS')], 'vdims': [Dimension('y')]}, another factory with kwargs={'mode': None}, and a method with kwargs={'color': 'red'}). First dictionary: _param__private: <param.parameterized._InstancePrivate object at 0x1342eaec0> |
User issue Needed to set import pickle
import holoviews as hv
hv.Store.save_option_state = True
hv.extension("bokeh")
curve = hv.Curve([0, 1, 2], kdims=["XAXIS"]).opts(color="red")
pickle.loads(pickle.dumps(curve)) |
Expected:
Actual:
The text was updated successfully, but these errors were encountered: