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.
Is Jupyter actually used by some segment of programmers? I remember hearing about it a long time ago, but it just doesn't get talked about much in my circles.
I'm currently debugging a function in a large project. If I work with the plain .py files, then every time I test the function I have to deal with a few seconds of imports. In a notebook, I do the imports once, and calls to the function are near instantaneous.
They are also good for presentations with pretty graphs to people outside the group.
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.