Data Science, Jupyter Notebook, Machine Learning, Open Source, Analytics.
extension uses nbdime under the hood). A third option (and my favorite!) is Jupytext. This package allows you to open .py files as notebooks. This way, you can edit your code interactively, but it'll store a .py file once you save it. When using Jupytext, you can use git diff and pull requests