Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When a given cell has a label (given with the CellLabel->"label" option of the cell), then this label disappears after calling

SelectionEvaluate[ nb ]

when the contents of the cell is selected. Why is that? Is it possible to keep the label after evaluating its content (without making a new cell, so not using the



Thanks for all help!

share|improve this question
Could you describe steps you are performing? I can't reproduce your observation. I have to go now but just in case, take a look at CellLabelAutoDelete. – Kuba Sep 11 '13 at 13:59
Yes, I can add the steps, of course. Should I add an answer for that, to be able to format it? Thanks! – Gabriel Sep 11 '13 at 14:01
CellLabelAutoDelete seems to do the job! Thanks! – Gabriel Sep 11 '13 at 14:03
up vote 2 down vote accepted

If you try:

Options[EvaluationCell[], CellLabelAutoDelete]
{CellLabelAutoDelete -> True}

so you see we have to change this default setting by

SetOptions[EvaluationCell[], CellLabelAutoDelete -> False]

(EvaluationCell[] is only for example, do this for the cells you need to)

For global control go to Options Inspector:

Shift+Ctrl+O > Cell Options > Cell Labels > CellLabelAutoDelete

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.