Closed casperdcl closed 5 years ago
Python 3 tests are failing now, however I can't quite see how that's related to your changes.
This is a much needed feature, thanks for jumping on this: With Papermill gaining in popularity it is great to be able to strip out Papermill related metadata
OK @kynan @dnhuizen I think this is ready for merge. Should really bump the version number when that's done.
Thanks for your contribution!
Is it possible to filter the key nbformat_minor
with this feature?
@amard33p yes, should be. Is this a per-cell key? A "global" key?
@amard33p yes, should be. Is this a per-cell key? A "global" key?
Not sure about that...but you can see it in the diff here: https://github.com/kynan/nbstripout/issues/110#issuecomment-580836467
Complements #86
metadata
cell.metadata
metadata
(e.g.metadata.toc
)cell.metadata
(e.g.cell.metadata.heading_collapsed
metadata.kernel_spec
metadata.language_info
metadata.kernel_spec.display_name
metadata.kernel_spec.name
metadata.language_info.codemirror_mode.version
metadata.language_info.pygments_lexer
metadata.language_info.version
metadata
fields?This is configurable via
git config (--global) filter.nbstripout.extrakeys
. An example would be: