我最近下载了蟒蛇 PKG与如何禁用IPython的提示闪烁
安装了它在红帽系统的Python 2.7.13 ::蟒蛇4.3.1(64位)
当我运行ipython提示它始终保持闪烁的输入线。反正有禁用这个吗?
如果任何人都可以提供描述性说明,我将不胜感激,因为我是新手。
Regards, Indika。
我最近下载了蟒蛇 PKG与如何禁用IPython的提示闪烁
安装了它在红帽系统的Python 2.7.13 ::蟒蛇4.3.1(64位)
当我运行ipython提示它始终保持闪烁的输入线。反正有禁用这个吗?
如果任何人都可以提供描述性说明,我将不胜感激,因为我是新手。
Regards, Indika。
IPython有一个配置文件的概念,允许不同类型的配置。如果这对你来说是新闻,那么你可能刚刚使用了默认配置文件而不知道它。在shell中,运行ipython profile create命令以确保(不要担心,如果你有一个配置文件,这将不会覆盖它)。现在,ipython locate profile会告诉你包含默认配置文件的所有配置的目录。
在[1]:IPython的轮廓创建
在[2]:!IPython的定位轮廓
/home/pi/.ipython/profile_default
在[3]:X = !IPython的定位轮廓
[4]:CD $ XS
/home/pi/.ipython/profile_default
在文献[5]:LS
有很多东西有,但我们只需要我们的一行添加到静态/自定义文件的末尾/ custom.js
在文献[6] :CD静态/定制/
/home/pi/.ipython/profile_default/static/custom
在[7]:LS
custom.css custom.js
在[8]中:!echo“codemirror.defaults.cursorblinkrate = 0”>> custom.js
或者如果你说 “我想要它,现在我想要它!
你说你不想保存当前的笔记本并重新加载它以获取更新的CodeMirror设置?你只是想让当前笔记本中的所有单元改变它们的行为?嗯,好吧,房地美:
在[9]: %%的JavaScript
var rate = 0;
// apply setting to all current CodeMirror instances
IPython.notebook.get_cells().map(
function(c) { return c.code_mirror.options.cursorBlinkRate=rate; }
);
// make sure new CodeMirror instance also use this setting
CodeMirror.defaults.cursorBlinkRate=rate;