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

Add a pre-commit hook to clean notebook outputs #110

Open
jhlegarreta opened this issue Mar 29, 2021 · 0 comments
Open

Add a pre-commit hook to clean notebook outputs #110

jhlegarreta opened this issue Mar 29, 2021 · 0 comments
Labels
type:enhancement Propose enhancement to the lesson

Comments

@jhlegarreta
Copy link
Contributor

jhlegarreta commented Mar 29, 2021

In order to try to avoid inadvertently committing and merging the output or result of the execution of the jupyter notebooks, we should incorporate a pre-commit hook that clears the output cells using for example the following command:

jupyter nbconvert --ClearOutputPreprocessor.enabled=True --clear-output *.ipynb

The above requires installing the nbconvert package. Other solutions that do not require any additional package might exist.

Cross-referencing for example #109.

@jhlegarreta jhlegarreta added the type:enhancement Propose enhancement to the lesson label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Propose enhancement to the lesson
Projects
None yet
Development

No branches or pull requests

1 participant