5
$\begingroup$

I have two quite large notebooks with minimal differences. To compare them, I currently put them side by side and compare with my eyes, which feels quite inefficient. What are better ways to do this?

I have done some searching but only found questions from 8/9 years ago, they didn't work for me. In Mathmatica 12 I could not find a function like "Notebookdiff" and I also do not use Wolfram Workbench.

$\endgroup$
4
  • 2
    $\begingroup$ Mathematica notebooks are filled with formatting and meta data so comparing the .nb-Files in a text editor might be quite difficult. One possibility would be to export the two notebooks as .txt which should work fine for input and output cells containing text. Comparing those files with a text editor might be an option depending on what kind of content is in the notebooks.The underlying problem here is the same one preventing versioning tools (git,...) from working efficiently/properly. $\endgroup$
    – N0va
    Nov 30, 2020 at 13:54
  • $\begingroup$ At least closely related: How to effectively diff a notebook? see also: github.com/JP-Ellis/mathematica-notebook-filter $\endgroup$
    – Kuba
    Nov 30, 2020 at 22:17
  • $\begingroup$ @Kuba Thats one of the old questions I was referring to - the github project you are linking looks interesting, but it hasn't been updated in a while and according to the CI Pipeline it's broken. $\endgroup$
    – abti
    Dec 1, 2020 at 10:40
  • $\begingroup$ Since you didn't link them let me leave them. There were talks about GitLink`NotebookDiff but that package is not evolving too fast on GitHub. $\endgroup$
    – Kuba
    Dec 1, 2020 at 12:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.