Refresh
Details and Options
- The following options can be given:
-
TrackedSymbols Automatic symbols whose changes trigger an update UpdateInterval Infinity time interval at which to do updates - When Refresh[expr,opts] is evaluated inside a Dynamic, it gives the current value of expr, then specifies criteria for when the Dynamic should be updated.
- When one Refresh appears inside another, the innermost Refresh takes precedence.
- Refresh[expr] resets automatic updating even if it appears inside Refresh[…,None].
- The setting UpdateInterval->t specifies that updating should be done at least every t seconds.
- Refresh has attribute HoldFirst.
Examples
open all close allBasic Examples (1)
Scope (2)
By default, Dynamic updates as fast as possible:
DynamicModule[{u = 0}, Dynamic[If[u > 100, u = u, u = u + 1]]]Control the update using TrackedSymbols and UpdateInterval:
DynamicModule[{u = 0}, Dynamic[Refresh[If[u > 100, u = u, u = u + 1], TrackedSymbols :> {}, UpdateInterval -> .5]]]Update
only when
updates in a Manipulate:
Manipulate[{x, Refresh[y, TrackedSymbols :> {x}]}, {x, 0, 1}, {y, 0, 1}]Use UpdateInterval to specify how often
should update:
Manipulate[{x, Refresh[y, TrackedSymbols :> {x}, UpdateInterval -> 1]}, {x, 0, 1}, {y, 0, 1}]See Also
Tech Notes
Related Guides
History
Text
Wolfram Research (2007), Refresh, Wolfram Language function, https://reference.wolfram.com/language/ref/Refresh.html.
CMS
Wolfram Language. 2007. "Refresh." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Refresh.html.
APA
Wolfram Language. (2007). Refresh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Refresh.html
BibTeX
@misc{reference.wolfram_2026_refresh, author="Wolfram Research", title="{Refresh}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Refresh.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_refresh, organization={Wolfram Research}, title={Refresh}, year={2007}, url={https://reference.wolfram.com/language/ref/Refresh.html}, note=[Accessed: 12-June-2026]}