无缓冲模式下的IPython

无缓冲模式下的IPython,python,ipython,Python,Ipython,有没有办法在无缓冲模式下运行IPython 与python-u为标准python shell提供无缓冲IO的方法相同尝试: python -u `which ipython` 但是,不确定它是否能工作。来自Python的手册页: -u Force stdin, stdout and stderr to be totally unbuffered. On systems where it matters, also put stdin, stdout and

有没有办法在无缓冲模式下运行IPython

python-u
为标准python shell提供无缓冲IO的方法相同

尝试:

python -u `which ipython`

但是,不确定它是否能工作。

来自Python的手册页:

   -u     Force  stdin,  stdout and stderr to be totally unbuffered.  On systems where it matters, also put stdin, stdout and
          stderr in binary mode.  Note that there is internal buffering in xreadlines(), readlines() and  file-object  itera‐
          tors  ("for  line in sys.stdin") which is not influenced by this option.  To work around this, you will want to use
          "sys.stdin.readline()" inside a "while 1:" loop.
如果使用无缓冲模式会干扰readline,那么它肯定会对iPython提供的所有神奇的编辑和自动完成产生更大的干扰。我倾向于怀疑这就是为什么iPython中没有命令行选项