python Emacs 23 和 iPython
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/304049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Emacs 23 and iPython
提问by RichieHH
Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend?
有没有人在 emacs 23 中使用 iPython?emacs wiki 上的文档有点混乱,我很想听听使用 emacs 进行 Python 开发的任何人的意见。你使用下载的python-mode和ipython.el吗?你有什么建议吗?
采纳答案by RichieHH
I got it working quite well with emacs 23. The only open issue is the focus not returning to the python buffer after sending the buffer to the iPython interpreter.
我让它在 emacs 23 上工作得很好。唯一未解决的问题是在将缓冲区发送到 iPython 解释器后焦点没有返回到 python 缓冲区。
http://www.emacswiki.org/emacs/PythonMode#toc10
http://www.emacswiki.org/emacs/PythonMode#toc10
(setq load-path
(append (list nil
"~/.emacs.d/python-mode-1.0/"
"~/.emacs.d/pymacs/"
"~/.emacs.d/ropemacs-0.6"
)
load-path))
(setq py-shell-name "ipython")
(defadvice py-execute-buffer (around python-keep-focus activate)
"return focus to python code buffer"
(save-excursion ad-do-it))
(setenv "PYMACS_PYTHON" "python2.5")
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(provide 'python-programming)
回答by JimB
never used it myself, but I do follow the ipython mailing list, and there was a threada couple months back.
我自己从未使用过它,但我确实关注了 ipython 邮件列表,几个月前有一个线程。
maybe this will help
也许这会有所帮助
http://lists.ipython.scipy.org/pipermail/ipython-user/2008-September/005791.html
http://lists.ipython.scipy.org/pipermail/ipython-user/2008-September/005791.html
It's also a very responsive mailing list if you run into trouble.
如果您遇到麻烦,它也是一个非常敏感的邮件列表。
回答by Steen
I've used ipython with emacs cvs (which has been emacs 23 for some time now) in my python development. I, however, use it the other way around: I call emacs from the ipython promt through the $EDITOR environment variable. I tried it the other way around, but got a bit tired of all the process buffers and what not.
我在我的 python 开发中使用了 ipython 和 emacs cvs(它已经有一段时间了 emacs 23)。但是,我反过来使用它:我通过 $EDITOR 环境变量从 ipython promt 调用 emacs。我以相反的方式尝试过,但对所有进程缓冲区和其他什么都感到有点厌倦。
Emacs is great, but a command-line far more versatile.
Emacs 很棒,但命令行功能要多得多。