Developing jupyter notebooks on Github

Is there a program that has as input the source of a jupyter notebook, which removes all output jsons, removes all other unnecessary data, and pretty prints the resulting text file? I would like to see all jsons removed that do not obviously relate to what is visible when one opens a notebook. Preferably, it should also be easy to retrieve a conforming jupyter notebook from the saved result. The objective is to make diffs between different versions easily comprehensible.

There are a few threads discussing text-based representations of notebooks and ways to diff them, including:

There are some applications mentioned in those threads, they might be helpful to you?

Iā€™d recommend checking out Jupytext, which I think is the best solution for this kinda thing: http://jupytext.readthedocs.org/

1 Like