HG-NBDIFFWEB(1)

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

✨ 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 is 0 (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 than 127.0.0.1/localhost might 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 -1 to 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