【发布时间】:2020-03-04 20:43:41
【问题描述】:
如何让 ipython 在 emacs 下正常工作?
按照ipython docs recommendation,我启用了ipython:
(require 'python)
(setq python-shell-interpreter "ipython")
我在启动 ipython 服务器时收到以下警告。
Python 3.7.4 (default, Jul 9 2019, 18:15:00)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.
WARNING: your terminal doesn't support cursor position requests (CPR).
“[In]”提示根本不打印。当代码从另一个缓冲区发送时(例如通过python-shell-send-buffer)。这是一个示例屏幕转储(我猜i 8 i 8 来自未正确显示的提示):
WARNING: your terminal doesn't support cursor position requests (CPR).
i
8
i
8
hello world
以交互方式,“[Out]”提示有时显示有时不显示:
print('hello world')
hello world
4
Out[3]: 4
我在 macos 上运行的 Emacs:
This is GNU Emacs 26.3 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511))
of 2019-09-02
Copyright (C) 2019 Free Software Foundation, Inc.
【问题讨论】: