jupytext
Convert Jupyter notebooks to plain text documents, and back again. tldr-pages
On several platforms
Several platforms
Turn a notebook into a paired .ipynb/.py notebook
jupytext --set-formats ipynb,py path/to/notebook.ipynbIdentifyConvert a notebook to a .py file
jupytext --to py path/to/notebook.ipynbIdentifyConvert a .py file to a notebook with no outputs
jupytext --to notebook path/to/notebook.pyIdentifyConvert a .md file to a notebook and run it
jupytext --to notebook --execute path/to/notebook.mdIdentifyUpdate the input cells in a notebook and preserve outputs and metadata
jupytext --update --to notebook path/to/notebook.pyIdentifyUpdate all paired representations of a notebook
jupytext --sync path/to/notebook.ipynbIdentify