NBDIFF(1)
π NBDIFF β¨
okay bestie, so nbdiff is a User Commands girlie and she lives in section 1 of the manual, and she is literally here to compute the difference between two Jupyter notebooks. no cap. π
πΈ NAME πΈ
nbdiff β compute the difference between two Jupyter notebooks π¦
β¨ DESCRIPTION β¨
here's the vibe, the whole usage line, copied exactly so you can screenshot it and send it to the group chat:
usage: nbdiff [-h] [--version] [--config]
[--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}] [-s] [-o] [-a]
[-m] [-i] [-d] [--color-words] [--no-color] [--no-git]
[--no-use-diff] [--out OUT] [base] [remote] [paths ...]
and what does she do? compute the difference between two Jupyter notebooks. that's it. that's the whole job. iconic behavior honestly. π
π positional arguments π
baseβ the base notebook filename OR base git-revision. yes she accepts both, she's flexible like that πremoteβ the remote modified notebook filename OR remote gitrevision. (the original literally writes it as "gitrevision", no hyphen, and I'm not about to fix what isn't mine to fix π«Ά)pathsβ filter diffs for git-revisions based on path π
π options π
-h,--helpβ show this help message and exit. the classic. the moment you forget a flag, she's there. π«Ά--versionβ show program's version number and exit. one number, then she dips. β--configβ list the valid config keys and their current effective values. perfect for when you're like "wait what is she even set to rn" π--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}β set the log level by name. those are the exact five names, no improvising:DEBUG,INFO,WARN,ERROR,CRITICALπ--color-wordsβ whether to pass the--color-wordsflag to any internal calls togit diffπ--no-colorβ prevent use of ANSI color code escapes for text output. for when your terminal is doing too much π--no-gitβ prevent use ofgitfor formatting diff/merge text output π§--no-use-diffβ prevent use ofdiff/diff3for formatting diff/merge text output π¦--out OUTβ if supplied, the diff is written to this file. Otherwise it is printed to the terminal. so like, file if you want it, terminal if you don't. your call bestie π
π₯ ignorables π₯
set which parts of the notebook (not) to process. this is the choose your own adventure section β every one of these comes as a little matched pair, one to process it and one to ignore it, capital letter included. π
-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. the catch-all girlie, the "everything else" of the notebook π
β οΈ real talk bestie: notice the flags are case-sensitive. lowercase-smeans process sources, capital-Smeans ignore sources. same pattern for-o/-O,-a/-A,-m/-M,-i/-I,-d/-D. don't mix them up or you'll be sitting there like "why is my diff empty" π
and that's the whole page, fr fr. this little manual moment is from nbdiff 4.0.4, dated February 2026 β shoutout to the User Commands section for hosting her. go diff some notebooks, you're gonna slay πβ¨ππ¦πΈ
π¦ 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