NBMERGE(1)
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 overridesmerge-strategyfor inputs π--output-strategy {inline,use-base,use-local,use-remote,remove,clear-all}β the merge strategy to use for outputs. and yeah, it overridesmerge-strategyfor 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. soOUTis 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
- fedora 43: python3-nbdime 4.0.4-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: python3-nbdime 4.0.4-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms