##Download using git
You can git clone the library from Jake Vanderplas' GitHub repository: https://github.com/jakevdp/JSAnimation
git clone https://github.com/jakevdp/JSAnimation.git##Download without git
| try: | |
| from urllib.parse import quote # Py 3 | |
| except ImportError: | |
| from urllib2 import quote # Py 2 | |
| import os | |
| import sys | |
| #BLOG_DIR = os.environ['BLOG_DIR'] | |
| BLOG_DIR = '/home/gil/gforsyth.github.io/' |
| import sympy | |
| for i in range(100): | |
| basicMatrix = sympy.randMatrix(14,14,-99,99) | |
| powersMatrix = sympy.diag(10**123, 10**152, 10**185, 10**220, 10**397, 10**449, 10**503, 10**563, 10**979, 10**1059, 10**1143, 10**1229, 10**1319, 10**1412) | |
| smallMatrix = sympy.randMatrix(14,14,-999,999) | |
| bigMatrix = basicMatrix*powersMatrix + smallMatrix | |
| a = bigMatrix.det() | |
| b = bigMatrix.det() |
##Download using git
You can git clone the library from Jake Vanderplas' GitHub repository: https://github.com/jakevdp/JSAnimation
git clone https://github.com/jakevdp/JSAnimation.git##Download without git
Copy nbflatten.py to somewhere on $PATH. Then, in the root of a git repository, run these commands:
echo "*.ipynb diff=ipynb" >> .gitattributes
git config diff.ipynb.textconv nbflatten.pyWhen you change a notebook and run git diff, you'll see the diff of flattened, simplified notebooks, rather than the full JSON. This does lose some information (metadata, non-text output), but it makes it easier to see simple changes in the notebook.
This doesn't help with merging conflicting changes in notebooks. For that, see nbdiff.org.