I have started using IPython notebook quite a bit for writing up draft sections for my dissertation. However, given two versions of a draft (i.e., notebook), I would like to be able to generate some form of diff output to show what has changed. Does anyone know if this is currently possible, either through IPython notebook itself, or through some extension?
相关问题
- Access IPython's profile history (history.sqli
- Replace sequence of identical values of length > 2
- Pandas and NumPy default width change on startup
- prevent overlapping bars using seaborn with pandas
- Issues with tk in ipython/jupyter
相关文章
- cython in jupyter notebook
- python: ignoring leading “>>>” and “…” in interact
- In R, find whether two files differ
- how to print source code of object I defined use
- Interactively merge files tracked with git and unt
- Is there a commonly-used filename extension for un
- Diff for Powerpoint
- Removing trailing white space only for edited line
Since this question was answered, NBdiff, a diffing and merging tool for the IPython Notebook appeared on GitHub. Unfortunately, it has yet to be updated for Jupyter / IPython 3 Notebook format.
Another utility from the git issue that looks to have gotten official traction is nbdime.
Notebook diff can be generated with nbdime. After installing nbdime you can run following to see notebook diff in browser:
> nbdiff-web notebook_1.ipynb notebook_2.ipynb
If you are using Github for version control you can use ReviewNB for Notebook diff. It lets you login via Github and browse commits/pull-request diff on your repo. You'll see visual diff like below:
Not yet. This is a often a requested feature, but there are different "level" of diff you might want. Do you want only diff of codecell, or also output, what about prompt number ? etc, etc.
Lots of people have chimed in but nobody really took the time to wrote anything, even if notebook are pretty "simple" json file where cell "just" need to be "aligned" then produce a diffed-json notebook.