NBMERGE(1)

πŸ“¦
version 4.0.4 Β· 2 versions
, in fedora 43, fedora 44

NBMERGE(1) πŸ’–

okay bestie, welcome to User Commands β€” this is the manual for nbmerge, and yes she's giving main character energy, come sit with me 🫢


✨ NAME ✨

nbmerge β€” merge two Jupyter notebooks πŸ’…


🌸 DESCRIPTION 🌸

okay so here's the whole vibe, literally the entire usage line, no cap:

usage: nbmerge [-h] [--version] [--config]
              [--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}] [-s] [-o] [-a]
              [-m] [-i] [-d] [--merge-strategy
              {inline,use-base,use-local,use-remote}] [--input-strategy
              {inline,use-base,use-local,use-remote}] [--output-strategy
              {inline,use-base,use-local,use-remote,remove,clear-all}]
              [--no-ignore-transients] [--no-color] [--no-git] [--no-use-diff]
              [--out OUT] [--decisions] [base] local remote

So what she actually does: she merges two Jupyter notebooks, local and remote, that share a common ancestor called base. And if you just... don't pass a base? πŸ¦‹ She uses an empty notebook as the base instead. Iconic of her honestly.


πŸŽ€ positional arguments πŸŽ€

  • base β€” the base notebook filename, the ancestor, the origin story fr.
  • local β€” the local modified notebook filename.
  • remote β€” the remote modified notebook filename.

πŸ’… options πŸ’…

  • -h, --help β€” show this help message and exit. the classic.
  • --version β€” show program's version number and exit.
  • --config β€” list the valid config keys and their current effective values. it's giving receipts ✨
  • --log-level {DEBUG,INFO,WARN,ERROR,CRITICAL} β€” set the log level by name.
  • --merge-strategy {inline,use-base,use-local,use-remote} β€” the merge strategy to use.
  • --input-strategy {inline,use-base,use-local,use-remote} β€” the merge strategy to use for inputs. heads up: this overrides merge-strategy for inputs πŸ‘‘
  • --output-strategy {inline,use-base,use-local,use-remote,remove,clear-all} β€” the merge strategy to use for outputs. and yeah, it overrides merge-strategy for outputs too.
  • --no-ignore-transients β€” disallow deletion of transient data such as outputs and execution counts in order to resolve conflicts. like, no deleting the little extras to make peace 😀
  • --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.
  • --out OUT β€” if supplied, the merged output is written to this file. otherwise it is printed to the terminal. so OUT is the file, mmkay? πŸ“
  • --decisions β€” print a human-readable summary of conflicted merge decisions instead of merging the notebook. she spills the tea instead of doing the merge, obsessed.

🧚 ignorables 🧚

Set which parts of the notebook (not) to process. like a vibe check but for notebook sections ✨

  • -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.
ngl, the lowercase flag means process and the uppercase one means ignore. she said twin sisters, opposite attitudes πŸ’€

and that's the whole page, bestie!! πŸŽ€ this was nbmerge 4.0.4, dated February 2026 β€” mwah, love her, go merge some notebooks fr fr πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from