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

pre-commit hook for clearing ipynb notebooks #24

Closed
elbeejay opened this issue Mar 1, 2024 · 3 comments · Fixed by #21
Closed

pre-commit hook for clearing ipynb notebooks #24

elbeejay opened this issue Mar 1, 2024 · 3 comments · Fixed by #21
Assignees

Comments

@elbeejay
Copy link
Contributor

elbeejay commented Mar 1, 2024

Hopefully there's a pre-commit hook out there that auto-clears the .ipynb notebooks as well as their metadata so we avoid commiting cell outputs and other metadata (which may reveal sensitive information about local file structures).

@elbeejay elbeejay self-assigned this Mar 1, 2024
@elbeejay
Copy link
Contributor Author

elbeejay commented Mar 1, 2024

Two candidates for this are:

  1. https://github.com/kynan/nbstripout
  2. https://gitlab.com/iamlikeme/nbhooks

Let me know if you have experience or a preference for either hook @g4brielvs.

@elbeejay
Copy link
Contributor Author

elbeejay commented May 27, 2024

I think we need to resolve this sooner rather than later because it is impacting @bpstewar's PRs #31 and #32 - I'll look into it now

@elbeejay
Copy link
Contributor Author

Selected nbstripout as the other project is no longer actively maintained

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.

1 participant