【问题标题】:Emacs 23 and iPythonEmacs 23 和 iPython
【发布时间】:2010-09-23 04:10:58
【问题描述】:

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

【问题讨论】:

    标签: python emacs ipython emacs23


    【解决方案1】:

    我让它在 emacs 23 上运行得很好。唯一未解决的问题是焦点在将缓冲区发送到 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)
    

    【讨论】:

      【解决方案2】:

      我在 python 开发中使用了 ipython 和 emacs cvs(现在是 emacs 23)。但是,我用另一种方式使用它:我通过 $EDITOR 环境变量从 ipython 提示符调用 emacs。我尝试了相反的方法,但有点厌倦了所有进程缓冲区等等。

      Emacs 很棒,但命令行功能要多得多。

      【讨论】:

        【解决方案3】:

        我自己从未使用过它,但我确实关注了 ipython 邮件列表,几个月前有一个 thread

        也许这会有所帮助

        http://lists.ipython.scipy.org/pipermail/ipython-user/2008-September/005791.html

        如果您遇到麻烦,它也是一个响应迅速的邮件列表。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-06-07
          • 1970-01-01
          • 1970-01-01
          • 2010-10-31
          • 1970-01-01
          相关资源
          最近更新 更多