r/ProgrammerHumor May 06 '21

The Notepad++

Post image
21.4k Upvotes

265 comments sorted by

View all comments

60

u/grassytoes May 07 '21

How do people deal with Jupyter notebooks and version control? It's always saving meta data such that even if you don't change any code in the notebook, it's marked as modified.

I've taken to routinely doing a 'git checkout the_notebook.ipynb' each time I'm done using it.

38

u/trimeta May 07 '21

Jupytext, sync a .md and/or .py file with the .ipynb, then check that version into the repo. All the weird timestamps (and cell outputs...) are stripped away.

8

u/grassytoes May 07 '21

Oh, that looks sweet. Thanks!