Comment 16 for bug 835151

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 835151] Re: py-shell invoking python not ipython

Am 07.03.2012 13:11, schrieb Juan A Rodriguez:
> Hi Terry& Andreas:
>
> Terry Jones (terrycojones) wrote 10 hours ago:
>
>> Looks like earlier I just put
>
>> (setq py-default-interpreter "ipython"
>> py-python-command "ipython")
>> into my ~/.emacs and it worked.
>
> Terry, It didn't work for me...
> I was able to load the ipython by adding to .emacs
>
> (setq py-shell-name "ipython")
>
> as said here:
> https://github.com/ipython/ipython/pull/1015
>
> but when i evaluate the code, the output is given in the
> standard python interpreter.

if the shebang - which would precede - is right, it
is a bug.

I'll look for this

>
>> Juan, may you check out the current trunk?
>> Please tell, should you need help for this.
>
> Andreas, i'm a newbie with all this stuff... With current trunk, do you refer to the latest version?
> I tried it, and now the error turned out to be:
>
> "File mode specification error: (void-variable py-mode-map)"
>
> Any idea?

probably you are still loading (an old version of) ipython.el
>

ipython.el isn't needed any more, the latest version should not disturb however

>> Likewise using M-x customize py-shell-name should make it survive upgrades.
>> If you want to have another default shell than shipped, there is no way than indicating that somehow.
>
> How can I do this??
>
>> Beside of this - with changes of py-shell-name taking a full-path, the bug titeling here might show up in some circumstances
>> again.
>
> Should I indicate the full path in here?
> (setq py-shell-name "ipython")
>

No, only if you want to use a different IPython from default

> Thanks so much to both of you. So kind people!
>
> PS: Seriouly thinking about going back to 5.2.0...
>