Monitor

Monitor[expr,mon]
generates a temporary monitor cell in which the continually updated current value of mon is displayed during the course of evaluation of expr.

DetailsDetails

  • Monitor[Table[e,{x,}],x] generates a monitor cell that shows the continually updated current value of x during the evaluation of the Table.
  • In a notebook, the monitor cell normally appears directly after the cell in which Monitor[expr,mon] is evaluated. The cell is deleted as soon as the evaluation of expr is complete.
  • If Print, PrintTemporary, or similar output is generated before the evaluation of Monitor begins, it will appear before the monitor cell.
  • Any expression, including graphics and controls, can be given for mon.
  • Monitor[expr,mon,delay] will delay the indicated number of seconds before generating the monitor cell. If the evaluation of expr is complete before then, no monitor is displayed.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Monitor the value of while the computation is running:

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

Display a progress indicator while the computation is running:

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

Monitor a fast process by using Pause to slow down:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)