pymor.models.interact¶
Module Contents¶
- class pymor.models.interact.ParameterSelector(space, time_dependent)[source]¶
Bases:
pymor.core.base.BasicObjectParameter selector.
- pymor.models.interact.interact(model, parameter_space, show_solution=True, visualizer=None, transform=None)[source]¶
Interactively explore
Modelin jupyter environment.This method dynamically creates a set of
ipywidgetsto interactively visualize a model’s solution and output.- Parameters:
model – The
Modelto interact with.parameter_space –
ParameterSpacewithin which theParametersof the model can be chosen.show_solution – If
True, show the model’s solution for the given parameters.visualizer – A method of the form
visualize(U, return_widget=True)which is called to obtain anipywidgetthat renders the solution. IfNone,model.visualizeis used.transform – A method
transform(U, mu)returning the data that is passed to thevisualizer. IfNonethe solutionUis passed directly.
- Returns:
The created widgets as a single
ipywidget.