5
$\begingroup$

I have a very large notebook that has evolved over years. It is the result of countless copy and paste, edit, divide, merge, etc., operations. Some of the cells have hundreds (thousands?) of elements in the CellChangeTimes list.

Is there a way to clear those? That is, without editing each cell by hand.

$\endgroup$
  • 2
    $\begingroup$ You can try the "Clear history" button described here $\endgroup$ – Jason B. Apr 26 '18 at 21:33
  • $\begingroup$ It took a while to open the dialog, but it worked. If you turn your comment into an answer, I will be happy to accept it. $\endgroup$ – Steven Thomas Hatton Apr 26 '18 at 21:43
  • 2
    $\begingroup$ Years ago I had the same problem with a notebook of a customer and it was really slow to open.Since then I always switch off history tracking globally. This actually should be the default setting in Mathematica always. But I doubt WRI will change that... $\endgroup$ – Rolf Mertig Apr 27 '18 at 7:18
1
$\begingroup$

(Posting comment by Jason B. as an answer.)

You can use the "Clear history" button described here.

$\endgroup$
1
$\begingroup$

For a programmatic approach, this should work:

CurrentValue[Cells[], CellChangeTimes] = Inherited;

Then you may want to stop them being created:

CurrentValue[EvaluationNotebook[], "TrackCellChangeTimes"] = False;
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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