{"id":14977290,"url":"https://github.com/basnijholt/ipynb_git_filters","last_synced_at":"2025-10-28T03:30:46.209Z","repository":{"id":55004411,"uuid":"129087251","full_name":"basnijholt/ipynb_git_filters","owner":"basnijholt","description":"🤖 Clean your notebook outputs with every commit!","archived":false,"fork":false,"pushed_at":"2021-01-15T00:19:40.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T10:55:20.323Z","etag":null,"topics":["git","git-filter","ipynb","jupyer-notebook","nbconvert"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basnijholt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-11T12:04:03.000Z","updated_at":"2024-12-26T18:53:10.000Z","dependencies_parsed_at":"2022-08-14T08:50:22.390Z","dependency_job_id":null,"html_url":"https://github.com/basnijholt/ipynb_git_filters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basnijholt%2Fipynb_git_filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basnijholt%2Fipynb_git_filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basnijholt%2Fipynb_git_filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basnijholt%2Fipynb_git_filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basnijholt","download_url":"https://codeload.github.com/basnijholt/ipynb_git_filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238590593,"owners_count":19497351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-filter","ipynb","jupyer-notebook","nbconvert"],"created_at":"2024-09-24T13:55:24.723Z","updated_at":"2025-10-28T03:30:45.909Z","avatar_url":"https://github.com/basnijholt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strip output and metadata from your `.ipynb` as a git filter\n\n`ipynb_filter.py`: using `nbconvert` to remove the a notebook's output on each commit to not clutter up your Git history.\n\n* `+` No external dependencies, if you have `Jupyter notebook` installed you will have `nbconvert`\n* `-` A bit slow, ~150 ms\n* `-` need to make sure that every contributor uses it (otherwise it will result in conflicts)\n\n## Usage, install and forget\n\n### Option 1 (fast)\nRun `wget https://raw.githubusercontent.com/basnijholt/ipynb_git_filters/master/ipynb_filter.py \u0026\u0026 echo \"*.ipynb filter=ipynb_filter\" \u003e\u003e .gitattributes \u0026\u0026 python ipynb_filter.py`\n\n### Option 2 (manual, slow)\n1. Copy `ipynb_filter.py` into your project root\n2. Add the following line to your `.gitattributes`: `*.ipynb filter=ipynb_filter`\n3. run `python ipynb_filter.py`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasnijholt%2Fipynb_git_filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasnijholt%2Fipynb_git_filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasnijholt%2Fipynb_git_filters/lists"}