srstevenson / nb-clean

Clean Jupyter notebooks of outputs, metadata, and empty cells, with Git integration
https://pypi.org/project/nb-clean/
ISC License
128 stars 18 forks source link

Add support for preserving notebook metadata #245

Closed srstevenson closed 6 months ago

srstevenson commented 6 months ago

This PR adds support for preserving notebook (as opposed to cell) metadata, such as language_info.version. This is disabled by default to maintain the current behaviour, but can be enabled by passing the -n/--preserve-notebook-metadata flag.

Closes #244.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (bcd29c2) 99.44% compared to head (69e1b39) 99.46%.

:exclamation: Current head 69e1b39 differs from pull request most recent head 823c6e7. Consider uploading reports for the commit 823c6e7 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #245 +/- ## ========================================== + Coverage 99.44% 99.46% +0.02% ========================================== Files 3 3 Lines 180 187 +7 ========================================== + Hits 179 186 +7 Misses 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.