I use IPython widgets to create an interactive storyline that helps students understand the determinants of accuracy of the various ODE grids available in scipy.integrate.ode . However, I canβt find much information about the various kinds of widgets and their keywords.
from IPython.html.widgets import * @interact(h=FloatTextWidget(), atol=FloatTextWidget(), rtol=FloatTextWidget(), k=IndexSliderWidget(), integrator=TextWidget())) def plot_lotka_volterra_residuals(h=1e-1, atol=1e-3, rtol=1e-3, k=3, integrator='dopri5'): """Plots residuals of the Lotka-Volterra system."""
In particular, I would like to know how to set a default value for each widget.
source share