[OS X Emacs] Re: Aquamacs 2.3 ignoring customized py-python-command through ipython

Graham Taylor essex_green at hotmail.com
Tue Aug 16 18:46:34 EDT 2011

Just to follow up on this issue:It is not Aquamacs. It seems to be an incompatibility between python-mode >= 6.0 and the ipython.el available at:http://ipython.scipy.org/dist/ipython.el.
Trying the ipython.el available on the ipython git repository didn't help either.So my solution was to maintain Aquamacs 2.3 and revert to python-mode 5.2.0 which is the latest version I seem to be able to get to work with ipython.el.

> Date: Tue, 9 Aug 2011 01:03:12 -0400
> From: Graham Taylor <essex_green at hotmail.com>
> Subject: [OS X Emacs] Aquamacs 2.3 ignoring customized
> 	py-python-command	through ipython
> To: <macosx-emacs at email.esm.psu.edu>
> Message-ID: <COL105-W2D24008B3FE06F2605E2493200 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
> Hello,In Aquamacs 2.1 I was able to customize my python shell in python-mode by setting the following in my Preferences.el:
> (setq ipython-command "ipython-2.7")(require 'ipython)(setq py-python-command-args '("-pylab" "-colors" "Linux"))
> Once upgrading to Aquamacs 2.3 (which also updates to python-mode 6.0) -without any changes to Preferences.el- invoking the shell gets me the standard python shell:
> Proc   Status	Buffer	 Tty	      Command----   ------	------	 ---	      -------Python run	*Python* /dev/ttys009 python -i -colors LightBG
> I can see that "python" rather than "ipython" is running (by viewing the process output above).Also I get an error where python cannot parse the "-colors" command-line option (whereas ipython could).
> Traceback (most recent call last):  File "<string>", line 1, in <module>NameError: name 'olors' is not defined>>> 
> So it appears that the new Aquamacs is simply ignoring py-python-command.If I M-x describe-variable on py-python-command, I see that it's set:
> py-python-command is a variable defined in `python-mode.el'.Its value is "ipython-2.7"
>   This variable is potentially risky when used as a file local variable.
> Documentation:*Shell command used to start Python interpreter.
> But it's just getting ignored (i.e. python, rather than ipython, is the shell). Anyone have any clue what's going on? I've tried a minimal Preferences.el but I get the same behaviour. Reverting back to Aquamacs 2.1 gives me the desired behaviour (i.e. ipython is the shell).
> Graham

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110816/f850af72/attachment.html>

More information about the MacOSX-Emacs mailing list