ShowCellLabel
✖
ShowCellLabel
Details

- ShowCellLabel can take the values True or False to show or hide the cell label.
- ShowCellLabel->Automatic works identically to ShowCellLabel->True if the cell had been last evaluated in a currently running kernel session. If the kernel session that last evaluated the cell is no longer running, then Automatic changes the display by obscuring $Line and changing the onscreen style used to display the label.
- ShowCellLabel is more often set for styles of cells than for individual cells.
- If the CellLabelAutoDelete option is set to True or Automatic, the label for a cell is automatically deleted when the cell is modified.
Examples
Basic Examples (1)Summary of the most common use cases
Create one input cell with ShowCellLabel->True and one with ShowCellLabel->False:
In[1]:=1

✖
https://wolfram.com/xid/0dqtp7r28wm-ccln7b
Labels are set when the cells are evaluated, but the second input cell's label is hidden:
In[2]:=2

✖
https://wolfram.com/xid/0dqtp7r28wm-e18i0t
You can see the label by turning ShowCellLabel on again:
In[3]:=3

✖
https://wolfram.com/xid/0dqtp7r28wm-bkgpkj
Wolfram Research (1996), ShowCellLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/ShowCellLabel.html (updated 2018).
✖
Wolfram Research (1996), ShowCellLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/ShowCellLabel.html (updated 2018).
Text
Wolfram Research (1996), ShowCellLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/ShowCellLabel.html (updated 2018).
✖
Wolfram Research (1996), ShowCellLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/ShowCellLabel.html (updated 2018).
CMS
Wolfram Language. 1996. "ShowCellLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018. https://reference.wolfram.com/language/ref/ShowCellLabel.html.
✖
Wolfram Language. 1996. "ShowCellLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018. https://reference.wolfram.com/language/ref/ShowCellLabel.html.
APA
Wolfram Language. (1996). ShowCellLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ShowCellLabel.html
✖
Wolfram Language. (1996). ShowCellLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ShowCellLabel.html
BibTeX
✖
@misc{reference.wolfram_2025_showcelllabel, author="Wolfram Research", title="{ShowCellLabel}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/ShowCellLabel.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_showcelllabel, organization={Wolfram Research}, title={ShowCellLabel}, year={2018}, url={https://reference.wolfram.com/language/ref/ShowCellLabel.html}, note=[Accessed: 29-March-2025
]}