Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (27 loc) · 857 Bytes

showcase_overview.md

File metadata and controls

46 lines (27 loc) · 857 Bytes

problem 1

you have two versions of a notebook, created in a long forgotten time. Which one is which and how do they differ?

solution 1

make a diff

problem 2

standard diffing between notebooks is quite unpleasing for the eye

standard diffing on *nix systems:

diff 1.ipynb 2.ipynb

solution 2

ignoring all the json mumbo jumbo, all the outputs of the cells, and the metadata.

problem 2

how to do this easily?

solution 3:

nb-dime

diffing using nb-dime

# [optional] setting the correct conda environment
source activate ENVIRONMENT
# nb-dime example
# command line interface
nbdiff -s 1.ipynb 2.ipynb
# Web interface
nbdiff-webb 1.ipynb 2.ipynb

showing a notebook in a terminal

cat 1.ipynb
nbshow -OMD 1.ipynb 

comparison from jupyter

nb-dime notebook extension