How to set up nbdime in Git to diff/merge jupyter notebooks on Wins 10?

18 views
Skip to first unread message

Lei Liao

unread,
Feb 24, 2020, 5:46:48 AM2/24/20
to Project Jupyter
Hi, I need to merge with other people's jupyter notebooks using Git. Typical git merge does not work for jupter notebooks. 
Looks like https://nbdime.readthedocs.io/en/latest/index.html#git-integration-quickstart is a good solution, but i encounter errors to set it up. 

After pip install nbdime, I can run the following in anaconda prompt: 
nbdime config-git --enable --global

But in the Git Bash command window, when am trying to config the nbmergedriver and nbdiffdriver, always get the error saying command not found:
LIAOL@LAP02964 MINGW64 /c/Backup_from_D/Projects/test_jupyter_merge (feature/WFH)
$ git-nbmergedriver config --enable --global
bash: git-nbmergedriver: command not found

LIAOL@LAP02964 MINGW64 /c/Backup_from_D/Projects/test_jupyter_merge (feature/WFH)
$ git-nbdiffdriver config --enable --global
bash: git-nbdiffdriver: command not found


Anybody know how i could fix this? Thanks.


Reply all
Reply to author
Forward
0 new messages