4
$\begingroup$

I am looking for any straightforward solution to work with Jupyter Notebooks and git since the cached data on the .ipynb files makes the diff difficult to read.

Does anyone know any standalone alternative and not server hosted?

$\endgroup$
2
  • $\begingroup$ The best way to do say is to just make a copy of that concerned .ipynb and rename it beginning with tmp $\endgroup$
    – Aditya
    Apr 18, 2018 at 5:22
  • $\begingroup$ See nbdime (NoteBook DIff/MErge tools). It integrates well with jupyterlab or jupyter, or command line. $\endgroup$ Dec 19, 2018 at 16:16

1 Answer 1

3
$\begingroup$

One option is to strip the output from the .ipynb file. Then the git diff would only track the cell data. One package that strips the output Jupyter Notebook is nbstripout.

$\endgroup$
1
  • $\begingroup$ Won't the cell numbers be troublesome? $\endgroup$
    – Aditya
    Apr 18, 2018 at 8:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.