jupyter / nbdime

Tools for diffing and merging of Jupyter notebooks.
http://nbdime.readthedocs.io
Other
2.66k stars 159 forks source link

Missing instructions for using NBDime diff for 2 NBs inside JupyterLab #660

Open richlysakowski opened 1 year ago

richlysakowski commented 1 year ago

Can some please explain how to open 2 notebooks within JupyterLab and display their differences in a notebook in JupyterLab?

The use case is to simply select 2 notebooks from the JupyterLab File Explorer, right-click, and open a new notebook directly in JupyterLab that displays the differences between the selected notebooks?

I understand how to use the command line to launch a server to display it, but that is clunky, because we must type of the full path to the notebooks.

Thank you.

vidartf commented 1 year ago

There isn't currently any such feature in the lab extension. If someone wants to contribute it, I would be more than happy to review it. The server endpoints for generating the diff view are there, but the JS UX for the "compare two notebooks" action would need to be implemented.