News for hackers. Stuff that matters.
Re:Git and Jupyter Notebooks Guide by wdroz on Friday July 07, 2023 @07:22AM (#36630074)
If you don't need to "commit" the output, you can just use nbconvert[0]:

    jupyter nbconvert --clear-output --inplace my_notebook.ipynb
So you can use git as usual, like for code.

[0] -- https://nbconvert.readthedocs.io/en/latest/

Re:Git and Jupyter Notebooks Guide by andrecosta on Friday July 07, 2023 @12:36PM (#36634304)
nbstripout[0] does that and installs a pre-commit hook

[0] -- https://github.com/kynan/nbstripout