You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error in the console "Error serializing widget state attribute: interaction" when clicking the reset button on a plot.
It seems that clicking the reset button on a plot calls the serialization routine for some reason. However, the interaction attribute only has a deserializer specified, not a serializer, so we end up in error.
To Reproduce
importnumpyasnpsize=100np.random.seed(0)
x_data=np.arange(size)
y_data=np.cumsum(np.random.randn(size) *100.0)
frombqplotimportpyplotaspltplt.figure(title="My First Plot")
plt.plot(x_data, y_data)
plt.show()
Then click the reset button at the bottom of the plot. Check the browser console for the error "Error serializing widget state attribute: interaction"
Expected behavior
No browser errors when clicking reset immediately after creating a plot
Describe the bug
There is an error in the console "Error serializing widget state attribute: interaction" when clicking the reset button on a plot.
It seems that clicking the reset button on a plot calls the serialization routine for some reason. However, the interaction attribute only has a deserializer specified, not a serializer, so we end up in error.
To Reproduce
Then click the reset button at the bottom of the plot. Check the browser console for the error "Error serializing widget state attribute: interaction"
Expected behavior
No browser errors when clicking reset immediately after creating a plot
Screenshots
Additional context
My guess is that adding a serializer at
bqplot/js/src/FigureModel.ts
Line 170 in 96b0b93
The text was updated successfully, but these errors were encountered: