有没有办法在两个版本的IPython笔记本之间生成差异? [英] Is there any way to generate a diff between two versions of an IPython notebook?

查看:118
本文介绍了有没有办法在两个版本的IPython笔记本之间生成差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用 IPython notebook 来为我的论文撰写草稿部分。但是,给定两个版本的草稿(即笔记本),我希望能够生成某种形式的diff输出来显示已经改变的内容。有没有人知道这是否可能,通过IPython笔记本本身,或通过一些扩展?

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?

推荐答案

尚未。这通常是一个请求的功能,但你可能想要的差异有不同的级别。
你想要只有codecell的差异,还是输出,提示号码怎么样?等等。

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.

很多人已经插手但没有人真正花时间写任何东西,即使笔记本是非常简单的json文件,其中单元格只是需要对齐然后生成diffed-json笔记本。

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.

这篇关于有没有办法在两个版本的IPython笔记本之间生成差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆