srstevenson / nb-clean

Clean Jupyter notebooks for version control. Remove metadata, outputs, and execution counts with Git and pre-commit support.
https://pypi.org/project/nb-clean
ISC License
135 stars 18 forks source link

Git filter only if file >100MB #178

Closed simonmfr closed 1 year ago

simonmfr commented 1 year ago

Hi, is there a flag to set a git filter which only cleans files >100MB (Github file size limit)? Would be much appreciated!

srstevenson commented 1 year ago

No, there isn't--nb-clean is primarily designed to remove cell outputs and metadata to reduce the likelihood of merge conflicts and make code review easier, rather than to reduce file size, and so when enabled will filter all notebooks.