With sympy_plot_backends I create an interactive plot that shows the graph of a parameter dependent function. With a slider it is possible to change the parameter value. After changing the slider value, the plot should be updated. In sympy_plot_backends interactive matplotlib is used.
With pyodide-kernel for jupyterlite this feature is working as expected. With xeus-python there is a glitch: After changing the slider value, the graph is not directly updated. As soon as I click into the drawing pane, the graph gets updated.
Description
With
sympy_plot_backends
I create an interactive plot that shows the graph of a parameter dependent function. With a slider it is possible to change the parameter value. After changing the slider value, the plot should be updated. Insympy_plot_backends
interactive matplotlib is used.With
pyodide-kernel
for jupyterlite this feature is working as expected. Withxeus-python
there is a glitch: After changing the slider value, the graph is not directly updated. As soon as I click into the drawing pane, the graph gets updated.Reproduce
Execute the following code in a notebook:
a
from the default0.0
to something nonzero.Expected behavior
The plot should update without clicking into the plot pane. With
pyodide
kernel it is working as expected.Context
Xeus Python Environment file: