Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
nbdime is a tool for diffing and merging of Jupyter notebooks.
Notice that nbdime integrates with git well.
Tips and Traps¶
If you install nbdime to your local directory,
make sure that the directory containing executables (usually ~/.local/bin)
is in $PATH so that it can be used without issues.
Installation and Configuration¶
You can use the following command to configure nbdime for Git.
:::bash
nbdime config-git (--enable | --disable) [--global | --system]Register nbdime with Git for the current project/repository.
:::bash
nbdime config-git --enableDeregister nbdime with Git for the current project/repository.
:::bash
nbdime config-git --disableRegister nbdime with Git for global users.
:::bash
nbdime config-git --enable --globalDeregister nbdime with Git for global users.
:::bash
nbdime config-git --disable --globalIf you are using xinstall, a simple way to install and configure nbdime is to run the following commandd.
:::bash
xinstall nbdime -icVersion Control Integration¶
nbdime config-git --enable --global
nbdime config-git --disable --global