如果我使用iTerm2初始化ipython并按Enter,则ipython会收到额外的控制字符。我该如何调试?
我尝试使用bash代替zsh,并且在iTerm2中发生相同的问题。我在默认为bash的终端中没有遇到问题。还尝试了其他键盘和新的ipython配置文件。似乎是正在加载iTerm2或shell的东西。
Mac 10.14.3
$ ipython
Python 3.7.2 (default, Dec 27 2018, 07:35:06)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]:
^[[21;1RIn [1]:
答案 0 :(得分:0)
看起来像是个错误。更新了ipython和默认的iTerms颜色主题,并解决了问题:https://github.com/ipython/ipython/issues/11336