3 ms·
Use nbstripout[0] as a git filter. Then you have seamless git control of notebooks. There's talk of automatically saving code only separate versions in future r
by Y_Y 10y ago
Use nbstripout[0] as a git filter. Then you have seamless git control of notebooks. There's talk of automatically saving code only separate versions in future releases.
[0] https://github.com/kynan/nbstripout https://github.com/kynan/nbstripout
- lancefisher 10y agoThis looks pretty good for handling diffing/merging of notebooks. I'm just getting started with jupyter, but it seems like somewhat of a pain to have to ssh into a server to manage versioning with git while I work on the code in the browser. I'd prefer if I could do all of my jupyter work directly in a notebook, and commit from the notebook webpage. I'm not sure how others work with this stack, so there is likely tooling I don't know about. I'd love to hear suggestions.
- carreau 10y agoWell you can commit from the UI: https://gab41.lab41.org/commit-and-push-to-github-from-jupyter-notebooks-579f5743a50b https://gab41.lab41.org/commit-and-push-to-github-from-jupyt... you just need to install the extension.
- coconutrandom 10y agoprepending commands with a "!" runs it in the shell, assuming you are using python. ! git commit add ./my_file.ipnb http://ipython.readthedocs.io/en/stable/interactive/python-ipython-diff.html?highlight=exclamation#shell-assignment http://ipython.readthedocs.io/en/stable/interactive/python-i...