Refresh
Implementation differs from Wolfram Standard Library
Refresh[expr_, interval_]produces a dynamic window with expr reevaluated each interval of time specified in seconds or in Quantity
Refresh[expr_, trigger_EventObject | trigger_String]produces a dynamic window with expr reevaluated by trigger event (see Events).
Refresh has the HoldFirst attribute.
Refresh and Animate automatically reduce their update rate when an expression is too expensive to reevaluate safely. Expressions that fall back to full reevaluation are limited to 5 FPS or less, depending on expression size. The requested interval is therefore a target, not a guarantee.
Example
Refresh[Now // TextString, 1]or even for decorated symbols
Refresh[Now, 1]JIT Features
Refresh expression uses the same runtime optimization features as Manipulate and Animate, which can benefit some cases and prevent full reevaluation.
For example:
Refresh[RandomImage[], 0.2]or
Refresh[ListLinePlot[RandomReal[{-1,1}, 100]], 0.2]Use care with Plot or other expensive expressions at intervals below one second. Automatic throttling prevents unsafe update rates, but repeated full reevaluation can still create significant load. Test with a longer interval first.
Consider to use Offload for rapidly changing data AnimatePlot or PlotlyExtendTraces.