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

[Feature] support --recursive in combination with a folder as an argument #147

Closed bneijt closed 1 year ago

bneijt commented 2 years ago

I would like support for recursive to have all the notebooks under a given folder to be considered for cleaning.

nb-clean clean --recursive banana.ipynb src would clean both banana.ipynb and all *.ipynb below the folder src.

This relates to issue #140 because that could also be achieved using this option.

bneijt commented 1 year ago

During PR discussion the feature was changed to not use a commandline argument but recurse by default for any given path that is a directory.

srstevenson commented 1 year ago

Implemented in #148.