David Schmudde / Nov 21 2018

Jupyter + Git + nbdime

1.
Jupyter Information

echo "VERSION:" jupyter --version
jupyter --paths
python --version

2.
Installation

2.1.
git

apt-get update
apt-get install -y git-all
git --version

2.2.
nbdime

pip install --upgrade nbdime

3.
Assets

3.1.
GitHub Repository

A git repository containing a notebook.

nbdime-git.tar.gz
tar -xf nbdime-git.tar.gz
ls -alF /nbdime-git

3.2.
Notebook

The same notebook in the git repository with a modified output to demonstrate diffing.

simple-nbdime.ipynb

4.
Demo

4.1.
git diff

cd /nbdime-git
cat simple-nbdime.ipynb > simple-nbdime.ipynb
git status
git diff

4.2.
nbdiff

cd /nbdime-git
nbdiff simple-nbdime.ipynb