There is an undocumented package in the built-in add-ons (in $InstallationDirectory/AddOns/Applications ) called AuthorTools . After loading, it provides the NotebookDiff function, which provides some basic diff functions:
Needs["AuthorTools`"]; nb1 = NotebookPut[ Notebook[{Cell["Subsection heading", "Subsection"], Cell["Some text.", "Text"]}]]; nb2 = NotebookPut[ Notebook[{Cell["Edited Subsection heading", "Subsection"], Cell["Some different text.", "Text"]}]]; NotebookPut@NotebookDiff [nb1, nb2]
Since this package is undocumented, make sure that it is potentially buggy and is not considered a supported function, but I hope you still find it useful.
Please note that you can also get pens for laptops, for example:
nb1 = NotebookOpen["path/to/a/notebook.nb"]
and the list of laptops currently open in the interface
Notebooks[]
Michael pilat
source share