[IPython-User] [xpyx] Problem with IPython / Emacs

lecture notes mkpaustin@gmail....
Mon Aug 13 12:01:42 CDT 2012


On Mon, Aug 13, 2012 at 9:02 AM, Eric Tanter <etanter@dcc.uchile.cl> wrote:
> Hi,
>
> The exact same problem occurs with 6.0.8.
>
> (note that I'm not talking of the same issue described in the bug report you indicated)
>

Right, I was more referring to the comment at the bottom of the bug report that
said he had found "multiple ipython issues".  Anyway, in case it helps
here's what's working for me:

OSX Lion
GNU Emacs 24.1.1 (MacPorts)
M-x locate-library python-mode:
Library is file ~/elisp/python-mode/python-mode.el-6.0.8/python-mode.el

Python 2.7.3 |EPD 7.3-1 (64-bit)| (default, Apr 12 2012, 11:14:05)
IPython 0.13

my ipython_config.py modifications:

c.InteractiveShellApp.pylab = 'osx'
c.InteractiveShellApp.extensions = ['autoreload']
c.TerminalInteractiveShell.editor =
'/Applications/MacPorts/Emacs.app/Contents/MacOS/bin/emacsclient
-a=/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs'
c.TerminalInteractiveShell.autocall = 1

The only lines in my .emacs:

(setq load-path (cons (expand-file-name
"~phil/elisp/python-mode/python-mode.el-6.0.8") load-path))
(add-to-list 'load-path "/Users/phil/elisp/python-mode/python-mode.el-6.0.8/")
(setq py-install-directory "/Users/phil/elisp/python-mode/python-mode.el-6.0.8")
(setq py-shell-name
"/Library/Frameworks/EPD64.framework/Versions/7.3/bin/ipython")
(require 'python-mode)

and when I do M-x py-shell, open a buffer and type in

for i in range(3):
    print i

and hit C-c c  the python comint buffer shows:

In [6]: 0
1
2

best, Phil


More information about the IPython-User mailing list