Skip to content
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

Handle notebook metadata #262

Closed
b-biswas opened this issue Feb 15, 2022 · 4 comments · Fixed by #266
Closed

Handle notebook metadata #262

b-biswas opened this issue Feb 15, 2022 · 4 comments · Fixed by #266

Comments

@b-biswas
Copy link
Collaborator

Is there a way to automatically manage the notebook metadata so that CI can also run smoothly?

@ismael-mendoza
Copy link
Collaborator

Hi @b-biswas thanks for creating this issue. Could you be a bit more specific on what problem you are having?

@ismael-mendoza
Copy link
Collaborator

One option which I'm not sure if it is what you had in mind is to use nbstripout in the pre-commit. We could set it so that it only strips out meta-data and not the output of each cell.

https://github.com/kynan/nbstripout

@b-biswas
Copy link
Collaborator Author

b-biswas commented Feb 17, 2022

Hi @ismael-mendoza, In my previous PR I was facing an issue when uploading the notebooks because my notebook kernel has a different name.
@aboucaud proposed something quite similar (https://github.com/datarootsio/databooks
available in https://pre-commit.com/hooks.html) to remove the metadata.

But if we completely remove the metadata won't it be a problem to run the CI?

@ismael-mendoza
Copy link
Collaborator

I think it should be OK - let me try it out in a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants