Cra*_*aig 6 python emacs aquamacs ipython python-mode
我在OS X lion上使用Aquamacs并尝试使用最新的python-mode.el来编辑和运行我的python代码.我可以通过键入C-来打开ipython shell,但如果我运行Cc Cc或Cc | python代码在没有ipython 的新Python缓冲区中运行.我尝试过一些修复方法.以下是我的.emacs文件的python特定部分:
(when (featurep 'python) (unload-feature 'python t))
;; add custom libs
(add-to-list 'load-path "~/tools/emacs")
;; Set up pylab
(setq py-install-directory "/Users/stringham/tools/emacs/")
(require 'python-mode)
(setq py-shell-name "/usr/local/bin/ipython")
(setq py-python-command "/usr/local/bin/ipython")
Run Code Online (Sandbox Code Playgroud)
有没有人成功使用ipython和Aquamacs?
Shebang 将优先于默认设置。要覆盖 shebang,请使用例如 Mx py-execute-buffer-ipythonRET
已承诺修复。请检查当前中继:
https://launchpad.net/python-mode
通过集市:
bzr branch lp:python-mode
Run Code Online (Sandbox Code Playgroud)
或从浏览器下载。