pip install git+https://github.com/lewagon/nbcleanmetapip uninstall -y nbcleanmetaalias nbc="nbcleanmeta $@"clean notebook cell data and metadata in order to maintain clear git diffs
clean data and metadata of the cells of the notebooks within the provided scope
nbcleanmeta run # clean all notebooks in current directory tree
nbcleanmeta run sources # clean individual notebooks and directory trees
nbcleanmeta run --help # list optionsprocessed cell data:
execution_count(set to 0)
deleted cell data:
id
deleted cell metadata:
idoutputIdscrolledExecuteTimeexecutionhiddencollapsedheading_collapsedvscodecolabeditabletagsif emptyslideshow.slide_typeif emptyslideshowif empty
return stats on cell data, metadata and tags used in the notebooks within the provided scope
return stats on delimiters used in the files and notebooks within the provided scope
nbcleanmeta stats # retrieve stats on current directory tree
nbcleanmeta stats sources # retrieve stats on individual files and directory trees
nbcleanmeta stats --help # list optionsthis is deprecated and has been replaced by challengify
converts a solutions notebook into a challenges notebook by removing all the cells with slide type set to notes (additionally to cleaning the notebook)
nbcleanmeta run --delete-notes notebook.ipynb # do not use