Skip to main content

Refresh

Wolfram Kernel
Execution environment
JerryI`Notebook`ManipulateUtils`
Context
warning

Implementation differs from Mathematica

Refresh[expr_, interval_Real | interval_Quantity | trigger_EventObject | trigger_String]

produces a dynamic window with expr reevaluated each interval specified in seconds or in time Quantity or manually triggered by trigger event (see Events).

Referesh has HoldFirst attribute.

Example

Refresh[Now // TextString, 1]

or even as a widget

Refresh[Now, 1]
caution

Do not put Plot or any other functions inside with a fast refresh rate (< 1 second). In general the reevaluation cause a large overhead to the system with graphics.

Consider to use Offload for rapidly changing data (see more in Dynamics and Advanced animation or PlotlyExtendTraces).