David Schmudde / Nov 21 2018
Jupyter + Git + nbdime
Jupyter + Git + nbdime
1. Jupyter Information
1.
Jupyter Information
echo "VERSION:" jupyter --version jupyter --paths
python --version
2. Installation
2.
Installation
2.1. git
2.1.
git
apt-get update apt-get install -y git-all git --version
2.2. nbdime
2.2.
nbdime
pip install --upgrade nbdime
3. Assets
3.
Assets
3.1. GitHub Repository
3.1.
GitHub Repository
A git repository containing a notebook.
tar -xf nbdime-git.tar.gz↩ ls -alF /nbdime-git
3.2. Notebook
3.2.
Notebook
The same notebook in the git repository with a modified output to demonstrate diffing.
cat simple-nbdime.ipynb↩
4. Demo
4.
Demo
4.1. git diff
4.1.
git diff
cd /nbdime-git cat simple-nbdime.ipynb↩ > simple-nbdime.ipynb git status git diff
4.2. nbdiff
4.2.
nbdiff
cd /nbdime-git
nbdiff simple-nbdime.ipynb