<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<font class="Apple-style-span" face="Tahoma" size="2">Hello,</font><div style="font-family: Tahoma; font-size: 10pt; ">In Aquamacs 2.1 I was able to customize my python shell in python-mode by setting the following in my Preferences.el:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">(setq ipython-command "ipython-2.7")</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">(require 'ipython)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">(setq py-python-command-args '("-pylab" "-colors" "Linux"))</font></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">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:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">Proc   Status<span class="Apple-tab-span" style="white-space: pre; ">      </span>Buffer<span class="Apple-tab-span" style="white-space: pre; ">   </span> Tty<span class="Apple-tab-span" style="white-space: pre; ">     </span>      Command</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">----   ------<span class="Apple-tab-span" style="white-space: pre; ">     </span>------<span class="Apple-tab-span" style="white-space: pre; ">   </span> ---<span class="Apple-tab-span" style="white-space: pre; ">     </span>      -------</font></div></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">Python run<span class="Apple-tab-span" style="white-space: pre; ">      </span>*Python* /dev/ttys009 python -i -colors LightBG</font></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I can see that "python" rather than "ipython" is running (by viewing the process output above).</div><div style="font-family: Tahoma; font-size: 10pt; ">Also I get an error where python cannot parse the "-colors" command-line option (whereas ipython could).</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">Traceback (most recent call last):</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">  File "<string>", line 1, in <module></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">NameError: name 'olors' is not defined</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">>>> </font></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">So it appears that the new Aquamacs is simply ignoring py-python-command.</div><div style="font-family: Tahoma; font-size: 10pt; ">If I M-x describe-variable on py-python-command, I see that it's set:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">py-python-command is a variable defined in `python-mode.el'.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Its value is "ipython-2.7"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">  This variable is potentially risky when used as a file local variable.</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Documentation:</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">*Shell command used to start Python interpreter.</font></div></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">But it's just getting ignored (i.e. python, rather than ipython, is the shell). Anyone have any clue what's going on? </font></div><div><font class="Apple-style-span" face="Tahoma" size="2">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).</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">Graham</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div>                                           </div></body>
</html>