Skip to content

Interactive Manipulation Controls

The control and animation heads from the InteractiveManipulation guide render as interactive widgets inside a Jupyter notebook or the playground. In script mode (like wolframscript -code) they have no notebook to live in, so they stay unevaluated as their canonical form rather than producing an interactive object.

Animation heads:

$ wo 'Animate[x^2, {x, 0, 5}]'
Animate[x^2, {x, 0, 5}]
$ wo 'ListAnimate[{1, 2, 3}]'
ListAnimate[{1, 2, 3}]

Selection-bar controls:

$ wo 'SetterBar[1, {1, 2, 3}]'
SetterBar[1, {1, 2, 3}]
$ wo 'CheckboxBar[{1}, {1, 2, 3}]'
CheckboxBar[{1}, {1, 2, 3}]
$ wo 'TogglerBar[{1}, {1, 2, 3}]'
TogglerBar[{1}, {1, 2, 3}]
$ wo 'RadioButton[1]'
RadioButton[1]

Progress, trigger, and two-dimensional / interval sliders:

$ wo 'ProgressIndicator[0.4]'
ProgressIndicator[0.4]
$ wo 'IntervalSlider[{2, 4}]'
IntervalSlider[{2, 4}]
$ wo 'Slider2D[{0, 0}]'
Slider2D[{0, 0}]

Standalone animator and the draggable / clickable panes (these auto-play or respond to pointer input in the Playground and Studio; in script mode they stay symbolic):

$ wo 'Animator[{0, 10}]'
Animator[{0, 10}]
$ wo 'LocatorPane[Dynamic[p], Graphics[Point[p]]]'
LocatorPane[Dynamic[p], Graphics[Point[p]]]
$ wo 'ClickPane[Graphics[{}], f]'
ClickPane[Graphics[{}], f]