kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 95 forks source link

Strip metadata with periods in key name #144

Closed baldwint closed 3 years ago

baldwint commented 3 years ago

Fixes #143 by checking to see if the key passed to pop_recursive literally exists in d, prior to decomposing the key into nested levels. If it exists, it is stripped. If it doesn't, periods in the key will be interpreted as nesting level delimiters.

kynan commented 3 years ago

Thanks for your contribution! And especially for adding a test :)