在IPython Notebook中关闭自动保存 [英] Turn Off Autosave in IPython Notebook
问题描述
我正在寻找一种在iPython笔记本中关闭自动保存的方法.我已经通过Google/Stack Overflow搜索看到了有关如何打开自动保存的参考,但是我想相反(关闭自动保存).如果可以永久设置而不是在每个笔记本的顶部进行设置,那将是比较可取的.
I'm looking for a way to turn OFF autosave in iPython notebook. I've seen references via Google/Stack Overflow searches on how to turn ON autosave but I want the opposite (to turn OFF autosave). It would be preferential if this was something that could be set permanently rather than at the top of each notebook.
推荐答案
如果将其添加到custom.js
,它将禁用所有笔记本的自动保存:
If you add this to your custom.js
, it will disable autosave for all notebooks:
$([IPython.events]).on("notebook_loaded.Notebook", function () {
IPython.notebook.set_autosave_interval(0);
});
在$(ipython locate profile)/static/custom/custom.js
找到
custom.js
.您可以使用同一件事来增加或减少自动保存间隔.该值以毫秒为单位,因此间隔30000表示每三十秒自动保存一次.
custom.js
is found at $(ipython locate profile)/static/custom/custom.js
. You can use the same thing to increase or decrease the autosave interval. The value is in milliseconds, so an interval of 30000 means autosave every thirty seconds.
这篇关于在IPython Notebook中关闭自动保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!