Git and Jupyter Notebooks Guide
Curious that they discuss several options, but ignore the totally obvious one: just use jupytext [0].  Jupytext is a (tiny) jupyter extension that reads/writes notebooks as python files, with text cells being represented as comments.  With jupytext, you do away with the stupid .ipynb format.  As long as you don't need to save the cell outputs, which is the case for version control, jupytext is the way to go.<p>People: pip install jupytext.  All your python files will become notebooks, and your notebooks will become python files.<p>[0] <a href="https://jupytext.readthedocs.io/en/latest/" rel="nofollow noreferrer">https://jupytext.readthedocs.io/en/latest/</a>