Skip to content

Allow clean to keep some metadata keys #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

dleen
Copy link
Contributor

@dleen dleen commented Jul 27, 2022

Certain tooling puts useful information in the metadata and cell metadata
sections. nbdev_clean currently wipes out everything except some hardcoded
keys.

Allow the user to specify additional keys via settings.ini

Fixes: #600

cc: @jph00

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Contributor

@jph00 jph00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the PR! Just some minor stylistic requests due to fast.ai's quirky approach to coding. Great idea for a feature and implementation looks good.

Certain tooling puts useful information in the metadata and cell metadata
sections. nbdev_clean currently wipes out everything except some hardcoded
keys.

Allow the user to specify additional keys via settings.ini
@dleen
Copy link
Contributor Author

dleen commented Jul 28, 2022

Many thanks for the PR! Just some minor stylistic requests due to fast.ai's quirky approach to coding. Great idea for a feature and implementation looks good.

Thanks for the review! Appreciate your patience while I'm internalizing the coding style. As for the tests, I debated using set comparison vs a bunch of asserts across multiple lines. I went with the set approach as the line of code tests a single idea

@dleen dleen requested a review from jph00 July 28, 2022 06:00
@jph00
Copy link
Contributor

jph00 commented Jul 28, 2022

Yes this is great! :D

@jph00 jph00 merged commit e1f5577 into AnswerDotAI:master Jul 28, 2022
@jph00 jph00 added the enhancement New feature or request label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleaning notebooks removes Papermill parameters tag
2 participants