How to increase the ipython qtconsole scrollback buffer limit

你说的曾经没有我的故事 提交于 2019-11-30 03:57:12

Quickly:

ipython qtconsole --IPythonWidget.buffer_size=1000

Or you can set it permanently by adding:

c.IPythonWidget.buffer_size=1000

in your ipython config file.

For discovering this sort of thing, a helpful trick is:

ipython qtconsole --help-all | grep PATTERN

For instance, you already had 'buffer', so:

$> ipython qtconsole --help-all | grep -C 3 buffer
...
--IPythonWidget.buffer_size=<Integer>
    Default: 500
    The maximum number of lines of text before truncation. Specifying a non-
    positive number disables text truncation (not recommended).

If IPython used a different name than you expect and that first search turned up nothing, then you could use 500, since you knew what the value was that you wanted to change, which would also find the relevant config.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!