CellDynamicExpression

CellDynamicExpression

is an option for cells that specifies an expression to be dynamically updated whenever the cell is visible on screen.

Details

  • CellDynamicExpression->Dynamic[expr] causes the expression to be tracked and updated in the usual way, except that expr is not displayed anywhere.
  • CellDynamicExpression may not trigger dynamic updates if the cell is scrolled off screen or inside a closed cell group.
  • The CellDynamicExpression dynamic is guaranteed to be resolved before any Dynamic objects that are in the cell's contents.

Examples

open allclose all

Basic Examples  (1)

Display the date:

Properties & Relations  (4)

CellDynamicExpression always resolves before any Dynamic objects in the cell's content:

Dynamic can be omitted from the right-hand side if :> is used:

Dynamic can be omitted from the right-hand side of CurrentValue if := is used:

As with any other Dynamic expression, Refresh may be used to control reevaluation:

Wolfram Research (2010), CellDynamicExpression, Wolfram Language function, https://reference.wolfram.com/language/ref/CellDynamicExpression.html.

Text

Wolfram Research (2010), CellDynamicExpression, Wolfram Language function, https://reference.wolfram.com/language/ref/CellDynamicExpression.html.

CMS

Wolfram Language. 2010. "CellDynamicExpression." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellDynamicExpression.html.

APA

Wolfram Language. (2010). CellDynamicExpression. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellDynamicExpression.html

BibTeX

@misc{reference.wolfram_2024_celldynamicexpression, author="Wolfram Research", title="{CellDynamicExpression}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/CellDynamicExpression.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_celldynamicexpression, organization={Wolfram Research}, title={CellDynamicExpression}, year={2010}, url={https://reference.wolfram.com/language/ref/CellDynamicExpression.html}, note=[Accessed: 22-December-2024 ]}