4 ms·
This very much. I'd like for Jupyter to have an option to keep the cell code in individual python files in th backend, so you can just check in those to VCS. It
by m_mueller 10y ago
This very much. I'd like for Jupyter to have an option to keep the cell code in individual python files in th backend, so you can just check in those to VCS. It would furthermore allow outside python code to import code from notebooks if jupyter would just provide a simple __init__.py file together with the cell files.
- carreau 10y agoSo you are asking for https://github.com/takluyver/nbexplode https://github.com/takluyver/nbexplode and https://github.com/ipython/ipynb https://github.com/ipython/ipynb respectively. There just not maintained enough to be in the core :-)
- mctx 10y agoYou can create a post save hook to output .py files - http://jupyter-notebook.readthedocs.io/en/latest/extending/savehooks.html http://jupyter-notebook.readthedocs.io/en/latest/extending/s... (You used to be able to run ipython notebook --script)