Message Boards Message Boards

0
|
3835 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to use Notebook compare?

Posted 2 years ago

Hi,

I am new user in Mathematica 13.0. I am trying to understand if I can compare two different Versions of Mathematica Code. I saw a Task as "Notebook Compare" . But could not see that in Mathematica tool bar. How to use "Notebook Compare"

3 Replies

I am not familiar with "Notebook Compare", but this post may be helpful: https://mathematica.stackexchange.com/a/14307/9490

POSTED BY: Jason Biggs
Posted 2 years ago

You could try this.

POSTED BY: Rohit Namjoshi
Posted 6 months ago

If you want to compare the input lines in 2 notebooks, go to File/Save As and save the notebooks as "wolfram language script". The .wls is very clean and easy to compare with any line-by-line text compare tool.

At least in version 14.0 File/Save as "text" doesn't differentiate input and output, and contains all output from when the notebook last ran. It is very noisy.

Each section of inputs in the .wls file from a notebook begins with

(* ::Input:: *)

--- various input lines ---

(**)

It often ends before the (*) but sometimes the input lines are after the ( *)

There are sections for explicitly printed lines that begin with (* ::Print:: *)

Git diff works really well. Any command-line tool you know will work.

POSTED BY: John Millard
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract