Skip to content

Instantly share code, notes, and snippets.

@askiiart
Created November 18, 2022 19:30
Show Gist options
  • Save askiiart/f3dd0c8b68711524748982f87fef868f to your computer and use it in GitHub Desktop.
Save askiiart/f3dd0c8b68711524748982f87fef868f to your computer and use it in GitHub Desktop.

Merging Jupyter Notebooks

This is a guide on how to merge Jupyter Notebooks (.ipynb) properly

Install nbdime

  • Install nbdime with pip install nbdime
    • You may also need to install ipython_genutils, with pip install ipython_genutils

Run nbdime

Run nbdime merge-web base local remote, but replace base with your already-merged file, local with the current file, and remote with the upstream changes

Wait for it to process, then click download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment