nbdime icon indicating copy to clipboard operation
nbdime copied to clipboard

nbdime-web: Diffing multiple notebooks at the same time

Open santiagobasulto opened this issue 3 years ago • 3 comments

Hello 👋 , i'm trying to run nbidme-web with a repo with multiple changed notebooks. Sorry if I'm missing something obvious, but how can I load all the notebooks? I keep being redirected to the same one all the time (shown in screenshot), even if I change the URL manually to Lecture_2.ipynb, Lecture_3.ipynb, etc.

I'm running the command in this way:

$ nbdiff-web e3fba84887e64cdb964579df4cda29cc244f61a0 5bfa9e19bab171500f5dfe2ae7f1976307bb990a *.ipynb --persist

What am I doing wrong? Thanks!

Screen Shot 2021-12-30 at 5 16 35 PM

santiagobasulto avatar Dec 30 '21 16:12 santiagobasulto

I guess a more general explanation of my issue is: how do you generate git diffs (using the webapp)for multiple files?

For example. If the current branch has made changes on files 1.ipynb, 2.ipynb and subdir/3.ipynb, how can you launch nbdiff-web to preview all those changes?

santiagobasulto avatar Jan 01 '22 16:01 santiagobasulto

@santiagobasulto The --persist option is mainly useful for debugging, and not really helpful when you want to diff multiple files. If you could share a little about why you are using it, I might be able to recommend a better pattern.

vidartf avatar Jan 10 '22 12:01 vidartf

Hello @vidartf! Thanks in advance for your help. My use case is relatively simple I think. I have an online server running Jupyter Lab. There's a new git branch created with some changes to some of the notebooks (1.ipynb, 2.ipynb and subdir/3.ipynb).

I'd like to lunch (in another port) nbdiff-web comparing what's on master@HEAD to the other branch and share the URL with my team so they can all compare the changes between the 2 branches.

santiagobasulto avatar Jan 10 '22 13:01 santiagobasulto