reno.viz.ModelViewer#

class reno.viz.ModelViewer(model, exclude_vars=None, plot_refs=None)#

Bases: object

An interface for viewing a model, modifying free variables, and live simulation.

Leaving for now, recommend using Explorer/explorer widgets instead

Methods

__init__(model[, exclude_vars, plot_refs])

Create a widget for exploring a model in a notebook.

assign_controls()

Update the underlying references based on the current control values.

create_variable_controls()

Set up a bunch of ReferenceEditors for the free variables.

rerender_equations()

rerender_graph()

rerun(n, steps)

Reset all visuals, run a simulation based on current controls, and update graphics.

simulate_button_press(*args)

Event handler for when the button labeled "simulate" is pressed, not a function simulating a button being pressed...

Parameters:
__annotations__ = {}#
__dict__ = mappingproxy({'__module__': 'reno.viz', '__doc__': 'An interface for viewing a model, modifying free variables, and live simulation.\n\n    Leaving for now, recommend using Explorer/explorer widgets instead\n    ', '__init__': <function ModelViewer.__init__>, 'simulate_button_press': <function ModelViewer.simulate_button_press>, 'rerender_graph': <function ModelViewer.rerender_graph>, 'rerender_equations': <function ModelViewer.rerender_equations>, 'rerun': <function ModelViewer.rerun>, 'assign_controls': <function ModelViewer.assign_controls>, 'create_variable_controls': <function ModelViewer.create_variable_controls>, '__dict__': <attribute '__dict__' of 'ModelViewer' objects>, '__weakref__': <attribute '__weakref__' of 'ModelViewer' objects>, '__annotations__': {}})#
__module__ = 'reno.viz'#
__weakref__#

list of weak references to the object

assign_controls()#

Update the underlying references based on the current control values.

Return type:

None

create_variable_controls()#

Set up a bunch of ReferenceEditors for the free variables.

Return type:

None

rerender_equations()#
Return type:

None

rerender_graph()#
Return type:

None

rerun(n, steps)#

Reset all visuals, run a simulation based on current controls, and update graphics.

Parameters:
  • n (int)

  • steps (int)

Return type:

None

simulate_button_press(*args)#

Event handler for when the button labeled “simulate” is pressed, not a function simulating a button being pressed…

Parameters:

args (list)

Return type:

None