5 ms·
I haven't used Jupyter but from what I can gather from this article they've built a simultaneous editing system on top of automatically committing to git in the
by p1necone 4y ago
I haven't used Jupyter but from what I can gather from this article they've built a simultaneous editing system on top of automatically committing to git in the background as multiple people edit things, and using that to share the changes between users.
Do I have that right? Because that sounds /insane/.
- jph00 4y agoNo it just uses normal git in the normal way. The simple trick is to use a jupyter-native git merge driver, so that merges are done at a cell level instead of a line level. Also, unneeded metadata is removed from the notebook when saving, so there's less changes to merge. Both these two things are done using standard hooks built into each of git and Jupyter. That is: git is written in such a way that it can fully support non line-oriented formats. We just took advantage of that capability.
- p1necone 4y agoAhh right, so you still make manual git commits normally, it's just that the Jupyter UI used to fall over when it encountered merge conflict markers in source files. And now it doesn't fall over any more and can nicely represent them because the conflict markers are no longer done for individual lines of text?
- jph00 4y agoYes exactly :D
- anigbrowl 4y agoIf this doesn't work for you JetBrains' DataSpell might, it's oriented towards notebooks for teams. It has hiccups, things like ipywidgets don't always work as expected so I sometimes find myself falling back to Jupyterlab. But overall it's a very comfy chair.