jupyter / nbdime

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

Web interface for 3-way merge in jupyterhub #418

Open belonesox opened 6 years ago

belonesox commented 6 years ago

Hello.

Please, if it possible, provide me link to right docs/code/samples.

vidartf commented 6 years ago

Hi!

This sounds like an interesting case. The answer to the question depends a lot on how you want to use it. If you just want normal git functionality, but able to resolve merge conflicts from the UI, I would:

If what you are looking for is simply merging three files (outside of git), there are other options as well.

vidartf commented 6 years ago

@belonesox Would you consider this issue as resolved? Do you have any suggestions for changes to the documentation for the future (e.g. based on what I talked about in the previous comment)?

belonesox commented 6 years ago

Sorry for delaying answers!

Install/enable the nbdime merge driver. After any actions that cause a merge conflict, the notebook will contain conflict markers. Open the notebook for editing, and resolve any conflicts as indicated by the markers.

Yes, already done it.

But wish to get better usability for newbies:

Is "Case 2" too complex to be easily implemented?

vidartf commented 6 years ago

Case 2 is not super complex, but there is some wiring that needs to go into it. Where would you expect the button to be, and how should it work (how does it know which notebooks need merging?).