HG-NBDIFFWEB(1)
β¨ HG-NBDIFFWEB(1) β¨
okay bestie, welcome to the manual for hg-nbdiffweb π it's a section 1 user command, and yes it's literally the mercurial web-based differ for notebooks, we love to see it π¦
πΈ NAME πΈ
hg-nbdiffweb β a mercurial web-based differ for notebooks β¨
π DESCRIPTION π
okay so first things first, here's the whole vibe of how you call it:
usage: hg-nbdiffweb [-h] [--version] [--config]
[--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}] [-p PORT]
[-b BROWSER] [--persist] [--ip IP] [-w WORKDIRECTORY] [--base-url
BASE_URL] [--show-unchanged] [--identical-lines-margin
IDENTICAL_LINES_MARGIN] [-s] [-o] [-a] [-m] [-i] [-d] local
remote
It's a mercurial external differ for notebooks, no cap πβ¨
It uses nbdime to create diffs for notebooks instead of plain text diffs of JSON β because reading raw JSON diffs is giving suffering π see the documentation for how to correctly configure mercurial to use this. iykyk, config matters bestie.
Use it like this:
hg extdiff -p hg-nbdiff [<commit> [<commit>]]
π positional arguments π
localβ the local modified notebook filename π«Άremoteβ the remote modified notebook filename π«Ά
π options π
-h,--helpβ show this help message and exit β¨--versionβ show program's version number and exit π--configβ list the valid config keys and their current effective values π--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}β set the log level by name πͺ΅-p,--port PORTβ specify the port you want the server to run on. Default is0(random) π²-b,--browser BROWSERβ specify the browser to use, to override the system default π--persistβ prevent server shutting down on remote close request (when these would normally be supported) π--ip IPβ specify the interface to listen to for the web server.
β οΈ NOTE: Setting this to anything other than127.0.0.1/localhostmight comprimise the security of your computer. Use with care! π like fr fr be careful
-w,--workdirectory WORKDIRECTORYβ specify the working directory you want the server to run from. Default is the actual cwd at program start π--base-url BASE_URLβ The base URL prefix under which to run the web app π--show-unchangedβ show unchanged cells by default ποΈ--identical-lines-margin IDENTICAL_LINES_MARGINβ Margin for collapsing identical lines in editor; set to-1to deactivate π
π§ 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 β¨
and that's the whole page bestie, you ate it π
this was hg-nbdiffweb version 4.0.4, dated February 2026 β go forth and diff those notebooks, main character energy only ππ
π¦ 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