Skip to main content

Manipulate

Wolfram Kernel
Execution environment
JerryI`Notebook`ManipulateUtils`
Context
Manipulate[expr_, {u_Symbol, min_, max_}..]
Manipulate[expr_, {{u_Symbol, initial_}, min_, max_}..]
Manipulate[expr_, {{u_Symbol, initial_}, min_, max_, step_}..]

generates a version of expr with controls added to allow interactive reevaluation.

Examples

Manipulate Series

Manipulate[Series[Sinc[x], {x, 0, n}], {n, 1, 5, 1}]

Manipulate[Plot3D[Sin[n x] Cos[n y], {x,-1,1}, {y,-1,1}], {n, 1, 5, 1}]

warning

Manipulate reevaluates the whole expression similar to Refresh, which is a huge overhead for the system. Please, consider to use ManipulatePlot, AnimatePlot, ManipulateParametricPlot or general dynamics using Offload (see Dynamics) for any plots, rapidly changing data and smooth transitions instead of Manipulate.

Manipulate is caching all results by the default.

Portability

Manipualte cannot be exported to Static HTML, however, Dynamic HTML is possible to keep the functionality working, but the file size might be quite large.

caution

Due to garbage collection problem, it is no longer possible to export using dynamic mode. Please write to Github issues, if you consider this problem important. Apart from that, ManipulatePlot as well asManipulateParametricPlot will work properly being exported using dynamic mode.