CellLabel

CellLabel

is an option for Cell which gives the label to use for a particular cell.

Details

  • CellLabel->"" specifies that no label should be used for a cell.
  • Cell labels are displayed when the setting ShowCellLabel->True is made. They may also be displayed in modified form with the setting ShowCellLabel->Automatic.
  • Cell labels are typically generated automatically when cells appear as input or output to the Wolfram Language kernel.
  • Cell labels are automatically deleted when a cell is modified or saved if CellLabelAutoDelete->True. If CellLabelAutoDelete->Automatic, then they are only automatically deleted if the cell is modified.

Examples

Basic Examples  (2)

Select the cell being evaluated and get its CellLabel setting:

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

Attach a label to a text cell:

In[1]:=
Click for copyable input

See Also

CellTags  CellLabelAutoDelete  ShowCellLabel  CellLabelStyle  $Line  In  Out

Tutorials

Related Workflows

Introduced in 1996
(3.0)
| Updated in 2018
(11.3)