7
$\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$
3
  • 2
    $\begingroup$ You can try the "Clear history" button described here $\endgroup$ Commented Apr 26, 2018 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$ Commented Apr 26, 2018 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$ Commented Apr 27, 2018 at 7:18

2 Answers 2

5
$\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$
3
$\begingroup$

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

You can use the "Clear history" button in the Notebook history palette.

$\endgroup$
1
  • $\begingroup$ I just found myself googling "clear notebook history mathematica" and came here..... $\endgroup$ Commented Jun 15, 2021 at 18:05

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.