Skip to main content


Learn About Our Meetup

5000+ Members



Join our meetup, learn, connect, share, and get to know your Toronto AI community. 



Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.



Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[P] Tradeoff solved: Jupyter Notebook OR version control. Jupytext brings you the best of both worlds

The tradeoff:

Jupyter Notebooks are great for visual output. You can immediately see your output and save it for later. You can easily show it to your colleagues. However, you cannot check them into version control. The json structure is just unreadable.

Version control saves our life because it gives us control over the mighty powers of coding. We can easily see changes and focus on whats important.

Until now, those two worlds were separate. There were some trials to merge the two worlds but none of the projects really felt seamless. The developer experience just was not great.

Introducing Jupytext:

Jupytext saves two (synced) versions of your notebook. A .ipynb file and a .py file. (Other formats are possible as well.) You check the .py file into your git repo and track your changes but you work in the Jupyter notebook and make your changes there. (If you need some fancy editor commands like refactoring or multicursor, you can just edit the .py file with PyCharm, save the file, refresh your notebook and keep working).

Also, the creator and maintainer, Marc is really helpful and kind and he works really long to make jupytext work for the community. Please try out jupytext and show him some love via starring his github repo.

submitted by /u/kite_and_code
[link] [comments]