Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到这种模式,但是当我从 Bash shell 启动 ipython 时,有时我发现 readline 命令喜欢ctrl a并且ctrl e可以很好地移动到一行的前面/后面。有时,莫名其妙地,这些命令只是将 ^a或^e打印到屏幕上。
发生这种情况时,我该如何找回 readline?
这迫使 a readline:
readline
$ rlwrap -a ipython
iPython(v.12)readline自动为我而来。您可以进行更多检查: file ~/.inputrc,或者readline在您调用之前是否存在iPython。希望这有帮助。
iPython
~/.inputrc