Marc Wouts
1 min readAug 22, 2018

--

Hi Ceshine,

Thanks for sharing.

I’m also interested in versioning notebooks as text formats. Actually I have a contribution that addresses Scott’s question below (how to recontruct the notebook from the .py file) :

  • install the nbrmd package with pip install --upgrade nrbmd
  • configure Jupyter to save each notebook to two files: ipynb and nb.py, by changing the jupyter_notebook_config.py file to
c.NotebookApp.contents_manager_class = "nbrmd.RmdFileContentsManager"
c.ContentsManager.default_nbrmd_formats = "ipynb,nb.py"

Editing the nb.py file is allowed, and Jupyter will display the new inputs when the notebook is refreshed (Ctrl+R in Jupyter).

Find out more on this in the documentation, or open our Sample notebook with python representation notebook that demo this on binder.

--

--

Marc Wouts
Marc Wouts

Written by Marc Wouts

Author of Jupytext and ITables. I love maths, data visualization and programming in mixed languages

No responses yet