# 使用 Homebrew, Nix 安装 nbdime

查看 nbdime 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:nbdime
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nbdime
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nbmerge
```

  证据: nixpkgs package indexes: pkgs/by-name/nb/nbmerge/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:nbdime
- **软件包管理器:** Homebrew
- **版本:** 4.0.4
- **来源摘要:** Jupyter Notebook Diff and Merge tools
- **主页:** <https://nbdime.readthedocs.io>
- **最后更新:** 2026-07-25T10:26:14Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-nbdiffdriver (别名)
- git-nbdifftool (别名)
- git-nbmergedriver (别名)
- git-nbmergetool (别名)
- hg-nbdiff (别名)
- hg-nbdiffweb (别名)
- hg-nbmerge (别名)
- hg-nbmergeweb (别名)
- nbdiff (别名)
- nbdiff-web (别名)
- nbdime (别名)
- nbmerge (别名)
- nbmerge-web (别名)
- nbshow (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.0.4
## 项目历史与用法

nbdime is the Jupyter notebook diff and merge toolkit: terminal diffs, web-rendered diffs, three-way merges, Git and Mercurial integration commands, and notebook-aware conflict handling.

### 项目历史

The jupyter/nbdime repository was created on 2015-11-16. The problem it addresses is old and specific: .ipynb files are JSON documents, so line-based diff and merge tools are noisy and often misleading for code cells, markdown cells, metadata, execution counts, rich outputs, and embedded images.

The project became part of the Jupyter ecosystem discussion early. Jupyter Enhancement Proposal 8, 'Diffing and merging notebooks', says preliminary work resided in nbdime and frames the core use cases as version-control merge commands, diff commands, notebook change inspection, and automated regression testing.

### 采用历史

The package reached PyPI as 0.1.0 on 2016-12-16 and 1.0.0 on 2018-05-15. GitHub API data retrieved on 2026-07-01 showed 2,836 stars and 192 forks. PyPI Stats reported 317,876 downloads for the recent last-month window, and Homebrew Formulae reported 758 installs over the prior 365 days.

Its adoption comes from being the practical local answer to notebook version control. Jupyter users can keep notebooks in Git, but nbdime makes diffs human-readable and merges less hazardous by understanding notebook structure.

### 使用方式

Users run nbdiff for terminal-friendly notebook comparisons, nbdiff-web for rendered browser diffs, nbmerge for three-way notebook merges, nbmerge-web for browser-assisted conflict resolution, and nbshow for terminal presentation of a notebook.

The Git integration is the package-nerd move: configure nbdime as the diff and merge driver so normal git diff and git merge behavior can route .ipynb files through notebook-aware tooling while leaving ordinary files alone.

### 为什么软件包爱好者会关心

nbdime matters because it turns notebooks from opaque JSON blobs back into reviewable development artifacts. It does not replace Git or Jupyter; it patches the exact place where their defaults are weakest together.

### 时间线

- 2015-11-16: jupyter/nbdime repository created.
- 2016-07-15: 'Diffing and Merging Jupyter Notebooks with nbdime' presented at SciPy 2016.
- 2016-12-16: nbdime 0.1.0 uploaded to PyPI.
- 2018-05-15: nbdime 1.0.0 uploaded to PyPI.
- 2026-02-10: nbdime 4.0.4 published.

### Related projects

- Project Jupyter
- Jupyter Enhancement Proposal 8
- Git diff and merge drivers for notebook files

### 来源

- <https://api.github.com/repos/jupyter/nbdime>
- <https://formulae.brew.sh/api/formula/nbdime.json>
- <https://github.com/jupyter/nbdime>
- <https://jupyter.org/enhancement-proposals/08-notebook-diff/notebook-diff.html>
- <https://nbdime.readthedocs.io/>
- <https://pypi.org/pypi/nbdime/json>
- <https://pypistats.org/api/packages/nbdime/recent>
- <https://pyvideo.org/scipy-2016/diffing-and-merging-jupyter-notebooks-with-nbdime-scipy-2016-min-ragan-kelley.html>
- <https://raw.githubusercontent.com/jupyter/nbdime/master/README.md>


## 安全说明

没有找到 nbdime 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: nbdime_config.json in directories listed by `jupyter --paths`, ./nbdime_config.json
## 其他软件包管理器记录

- Nix - nbmerge: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/nb/nbmerge/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/nbdime.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nbdime.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
