Wolfram Research

Function Repository Resource:

NotebookHistoryData

Source Notebook

Collect history of changes in the currently open notebooks

Contributed by: Wolfram Research

ResourceFunction["NotebookHistoryData"][]

gives an association of cell objects and their change times for the input notebook.

ResourceFunction["NotebookHistoryData"][nb]

gives notebook history data for the notebook object nb.

Details and Options

The format of cell change times is the same as in Options[CellObject[],"CellChangeTimes"].

Examples

Basic Examples

History data for the first few cells in the input notebook:

In[1]:=
data = ResourceFunction["NotebookHistoryData"][];
In[2]:=
Take[data, 5]
Out[2]=

History data in a notebook with a few changes:

In[3]:=
nb = CreateDocument[];
In[4]:=
NotebookWrite[nb, #] & /@ Range[3];
In[5]:=
ResourceFunction["NotebookHistoryData"][nb]
Out[5]=

Properties and Relations

NotebookHistoryDialog gives an interactive overview of notebook history data:

In[6]:=
ResourceFunction["NotebookHistoryDialog"][]

Resource History

See Also

License Information