CellDynamicExpression

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Create a cell that automatically updates to a random value once a second:

In[1]:=
Click for copyable input
Out[1]=

Display that output:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2010
(8.0)
Translate this page: