Re:Nbdev: Use Notebooks for Literate Programming
by amirathi on Tuesday April 14, 2020 @01:16AM
(#22862953)
Yes, nbdev can help with merge conflicts for notebooks [1]. Also checkout,
- GitPlus[2] - JupyterLab extension for git version control
- ReviewNB[3] - For notebooks diffs & commenting
Disclaimer: I built GitPlus & ReviewNB
[1] https://nbdev.fast.ai/#Avoiding-and-handling-git-conflicts
Re:Nbdev: Use Notebooks for Literate Programming
by spv on Tuesday April 14, 2020 @02:37AM
(#22863284)
reviewnb looks interesting. cool project.
Re:Nbdev: Use Notebooks for Literate Programming
by nerdponx on Monday April 13, 2020 @11:00PM
(#22862358)
I use NBDime to make readable diffs of Jupyter notebooks https://nbdime.readthedocs.io/en/latest/
Re:Nbdev: Use Notebooks for Literate Programming
by spv on Tuesday April 14, 2020 @02:36AM
(#22863281)
this is exactly what I was looking for. thanks.
Re:Nbdev: Use Notebooks for Literate Programming
by mafm on Tuesday April 14, 2020 @05:31AM
(#22864092)
Jupytext (https://github.com/mwouts/jupytext) solves most of the problems with managing notebooks in git.
Re:Nbdev: Use Notebooks for Literate Programming
by JPKab on Tuesday April 14, 2020 @11:37AM
(#22867278)
nbdev works with any kernel, because it only cares about the notebook files, which as you know are just JSON.
I've been using it with xeus-python kernel lately.
Edit: Forgot the Git part. It was designed to handle the git limitations in notebooks as well. In fact, one of the commands in the tutorials is to set up it's built-in git hooks, which will run special clean commands on commits.
My main issue with notebooks is putting them under version control in git. This seems like it could help with that.