Skip to content

Commit a0637f0

Browse files
committed
🙏 fix pickling of figurewidget resampler
1 parent 451c311 commit a0637f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plotly_resampler/figure_resampler/figurewidget_resampler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,8 @@ def reload_data(self):
326326
)
327327
# TODO: when we know which traces have changed we can use
328328
# a new -> `update_xaxis_str` argument.
329+
330+
def __reduce__(self):
331+
# Needed for pickling
332+
# Specifically set the class name, as the metaclass is not easily picklable
333+
return FigureWidgetResampler, *list(super().__reduce__())[1:]

0 commit comments

Comments
 (0)