google-deepmind / google-deepmind/optax

Add pre-commit hook that strips notebooks of metadata

Open
#1,372 3 comments 1 reaction 0 assignees View on GitHub
dependencies type:feature
Dominant language
Python
Stars
2.3k
Forks
369
Avg merge
10h 15m
Merged PRs (30d)
7

Description

Modifying and running a notebook changes its metadata. This makes diffs larger and harder to read. Furthermore, it's not necessary to store such metadata in the codebase in the first place.

Therefore, I suggest adding a pre-commit hook that automatically strips all notebooks of metadata.

A potential candidate is [nbstripout](https://github.com/kynan/nbstripout).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.