IPython - 单线间距可能吗? [英] IPython - single line spacing possible?
本文介绍了IPython - 单线间距可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,IPython shell在输入之间显示一个空行:
By default, the IPython shell shows a blank line between inputs:
In [1]: 1 + 1
Out[1]: 2
In [2]: import math
In [3]: math.sqrt(2)
Out[3]: 1.4142135623730951
In [4]:
有没有办法配置IPython shell,以便它不会在每个命令历史记录之间产生空行?这将显着增加我在屏幕上可以看到的历史记录数量。
Is there any way to configure the IPython shell so that it does not produce a blank line between each command history? This would significantly increase the amount of history I would be able to see on my screen.
推荐答案
我正在使用Windows,Alok的摘录与我<$中这三行的默认内容没有区别c $ c>%USERPROFILE%/ _ ipython / ipythonrc.ini
I'm working on Windows, Alok's excerp didn't differ from the default content of these three lines in my %USERPROFILE%/_ipython/ipythonrc.ini
我宁愿换线:
separate_in \n
至:
separate_in 0
这篇关于IPython - 单线间距可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文