qmetrics.net

nbstripout

CLI tool to strip Jupyter notebook outputs for Git

nbstripout screenshot

nbstripout removes notebook outputs and selected metadata while keeping cells. It is meant as a Git filter or hook so commits stay small and diff-friendly.

Overview

nbstripout reads Jupyter, IPython, or Zeppelin notebook files and strips execution output plus configurable metadata, then writes the cleaned notebook back to disk or stdout. Behavior is similar to clearing all outputs in the notebook UI, but filtering happens when Git records versions so local outputs can remain on disk.

The command supports in-place editing, pipelines, dry-run and verify modes, and recursive processing. Optional flags drop empty cells, tagged cells, init cells, or specific output types while preserving counts, cell IDs, or outputs marked with metadata or tags.

Install via pip or conda, then register with `nbstripout --install` as a required Git filter at repository, global, or system scope. Attributes can live in `.gitattributes` so teams share rules. The tool can rewrite history with git-filter-repo scripts for existing repositories.

Global and system installs apply the filter to all `.ipynb` files across machines. Extra metadata keys to strip or keep can be set through Git config or CLI flags.

Key features

  • Strip Jupyter and Zeppelin outputs
  • Git filter and diff driver setup
  • Keep output locally, omit from commits
  • Drop empty or tagged cells
  • Configurable metadata stripping
  • Dry-run and verify modes
  • Global or per-repo install
  • Pipeline and stdin or stdout use

Use cases

  • Cleaner Git diffs for notebooks
  • Smaller notebook commits without images
  • Team-wide output stripping policy
  • CI verification that outputs are stripped
  • Retroactive history cleanup for ipynb

Tags

Similar software

lazygit

Terminal user interface for everyday Git workflows

Lazygit runs in your terminal inside a Git repository and provides keyboard-driven panes to stage, commit, rebase, cherry-pick, bisect, and inspect history without memorizing long Git command sequences.

  • Line-level and hunk staging
  • Interactive rebase from the TUI
  • Cherry-pick and bisect support
GoLinux, macOS, Windows, CLIDetails →
★ 84.3k⟳ todayMIT

Gitea

Self-hosted Git forge with CI/CD and packages

Gitea is an all-in-one software development service you can run on your own infrastructure. It combines Git hosting with issues, reviews, project boards, package registries, and Gitea Actions CI/CD.

  • Git repository hosting and review
  • Issues, labels, and kanban boards
  • Gitea Actions CI/CD workflows
GoWeb, Linux, macOS, WindowsDetails →
★ 59.5k⟳ todayMIT
Open Source Alternative to:BitbucketCircleCI+2

Gogs

Self-hosted Git service with web collaboration tools

Gogs hosts Git repositories over SSH and HTTP(S) and adds issues, pull requests, wikis, and organization features through a browser UI.

  • Git over SSH and HTTP(S)
  • Browser code browse and edit
  • Issues and pull requests
GoWeb, Linux, macOS, WindowsDetails →
★ 48k⟳ 8 days agoMIT
Open Source Alternative to:BitbucketGitHub

GitHub CLI

Official GitHub terminal client

GitHub CLI brings issues, pull requests, and other GitHub workflows to the terminal beside git. It works with GitHub.com, Enterprise Cloud, and supported Enterprise Server deployments.

  • Pull request workflows
  • Issue management
  • Git-adjacent terminal UX
GoLinux, macOS, Windows, CLIDetails →
★ 47.5k⟳ todayMIT

Harness

End-to-end developer platform with SCM, CI/CD, and registries

Harness Open Source combines code hosting, automated DevOps pipelines, hosted development environments called Gitspaces, and artifact registries in one platform.

  • Git source control hosting
  • CI/CD pipelines in Docker
  • Hosted Gitspaces dev environments
GoWeb, Linux, macOS, WindowsDetails →
★ 39k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:BitbucketCircleCI+3

delta

Syntax-highlighting pager for git and diff output

delta replaces less for git show, diff, and blame with themes, word-level highlights, and side-by-side layout. Configure it as git’s pager or launch an interactive TUI on top of gitu.

  • Git-aware syntax highlighting
  • Side-by-side diff view
  • Word-level diff emphasis
RustWindows, CLIDetails →
★ 33.1k⟳ todayMIT