{"id":14977265,"url":"https://github.com/roy-ht/pre-commit-jupyter","last_synced_at":"2025-08-09T08:32:11.225Z","repository":{"id":53733519,"uuid":"221638744","full_name":"roy-ht/pre-commit-jupyter","owner":"roy-ht","description":"Clean up cell outputs of jupyter notebook","archived":false,"fork":false,"pushed_at":"2022-06-02T12:24:07.000Z","size":27,"stargazers_count":23,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T10:41:35.202Z","etag":null,"topics":["ipynb","jupyter","jupyter-notebook","pre-commit-hook"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/roy-ht.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":"2019-11-14T07:37:41.000Z","updated_at":"2024-11-04T16:14:35.000Z","dependencies_parsed_at":"2022-09-16T19:00:44.345Z","dependency_job_id":null,"html_url":"https://github.com/roy-ht/pre-commit-jupyter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-ht%2Fpre-commit-jupyter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-ht%2Fpre-commit-jupyter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-ht%2Fpre-commit-jupyter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roy-ht%2Fpre-commit-jupyter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roy-ht","download_url":"https://codeload.github.com/roy-ht/pre-commit-jupyter/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":["ipynb","jupyter","jupyter-notebook","pre-commit-hook"],"created_at":"2024-09-24T13:55:22.818Z","updated_at":"2025-02-13T03:31:44.828Z","avatar_url":"https://github.com/roy-ht.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"pre-commit hook to remove cell output of .ipynb notebook and some metadata for better security.\n\nSample config:\n```\nrepos:\n  - repo: https://github.com/roy-ht/pre-commit-jupyter\n    rev: v1.2.1\n    hooks:\n      - id: jupyter-notebook-cleanup\n        args:\n          # - --remove-kernel-metadata\n          - --pin-patterns\n          - \"[pin];[donotremove]\"\n```\n\nIf you have \"pin patterns\", You can keep cell outputs like that:\n\n```\n# [pin]\nsome_function()\nprint(\"some info\")\n```\n\n```\n# [donotremove]\nsome_function()\nprint(\"some info\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froy-ht%2Fpre-commit-jupyter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froy-ht%2Fpre-commit-jupyter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froy-ht%2Fpre-commit-jupyter/lists"}