OS Manuals

/usr/bin/hg-nbdiff

Jupyter all-spark-notebook image content combining the upstream jupyter/docker-stacks layer chain (base-notebook, minimal-notebook, scipy-notebook, pyspark-notebook, all-spark-notebook) into a single APK with the scientific Python stack, Apache Spark, R, and Spark/R kernels on top of jupyter-base-notebook.

From jupyter-all-spark-notebook 7.6.1_git20261106-r0 (enterprise-packages), captured 2026-11-08 by running hg-nbdiff --help (exit 0). permalink

usage: hg-nbdiff [-h] [-s] [-o] [-a] [-m] [-i] [-d] [--color-words] [--no-color] [--no-git]
                 [--no-use-diff]
                 base remote

A mercurial external differ for notebooks.

Uses nbdime to create diffs for notebooks instead of plain text diffs of JSON.
See the documentation for how to correctly configure mercurial to use this.

Use with:

    hg extdiff -p hg-nbdiff [<commit> [<commit>]]

positional arguments:
  base                  The base notebook filename.
  remote                The remote modified notebook filename.

options:
  -h, --help            show this help message and exit
  --color-words         whether to pass the --color-words flag to any internal calls to git diff
  --no-color            prevent use of ANSI color code escapes for text output
  --no-git              prevent use of git for formatting diff/merge text output
  --no-use-diff         prevent use of diff/diff3 for formatting diff/merge text output

ignorables:
  Set which parts of the notebook (not) to process.

  -s, --sources, -S, --ignore-sources
                        process/ignore sources.
  -o, --outputs, -O, --ignore-outputs
                        process/ignore outputs.
  -a, --attachments, -A, --ignore-attachments
                        process/ignore attachments.
  -m, --metadata, -M, --ignore-metadata
                        process/ignore metadata.
  -i, --id, -I, --ignore-id
                        process/ignore identifiers.
  -d, --details, -D, --ignore-details
                        process/ignore details not covered by other options.
Options (11)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--color-wordswhether to pass the --color-words flag to any internal calls to git diffhelp
--no-colorprevent use of ANSI color code escapes for text outputhelp
--no-gitprevent use of git for formatting diff/merge text outputhelp
--no-use-diffprevent use of diff/diff3 for formatting diff/merge text outputhelp
-s, --sources, -S, --ignore-sourcesprocess/ignore sources.help
-o, --outputs, -O, --ignore-outputsprocess/ignore outputs.help
-a, --attachments, -A, --ignore-attachmentsprocess/ignore attachments.help
-m, --metadata, -M, --ignore-metadataprocess/ignore metadata.help
-i, --id, -I, --ignore-idprocess/ignore identifiers.help
-d, --details, -D, --ignore-detailsprocess/ignore details not covered by other options.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.