python - Emacs 23 和 iPython

标签 python emacs ipython emacs23

有没有人使用 iPython 和 emacs 23? emacs wiki 上的文档有点困惑,我很想听听任何使用 emacs 进行 Python 开发的人的意见。你使用下载的python-mode和ipython.el吗?你有什么推荐的?

最佳答案

我让它在 emacs 23 上运行得很好。唯一 Unresolved 问题是焦点在将缓冲区发送到 iPython 解释器后没有返回到 python 缓冲区。

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)

关于python - Emacs 23 和 iPython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/304049/

相关文章:

Python 卡在 lxml.etree.XMLSchema(tree) with apache + mod_wsgi

python - Python 中的动态过程

python - 在 emacs 中将 python 代码提升一级?

python-3.x - 使用 jupyter notebook 在文件夹中播放 mp3

python - 如何获取与当前运行的 ipython 内核关联的 ipython 笔记本标题

python - 为什么在适用于 Python 的 ipython 笔记本中得到 'ImportError: dynamic module does not define init function (PyInit__caffe)'?

python - 使用 Python 交换同一列表中的子集

emacs - 如何在 elisp 中提示用户输入一段文本?

Emacs 打印边距栏

python - 增加不存在索引的列表索引