Subject: bug#15510: Make python.el work with IPython automatically

From: Andreas Röhler <[email-masked]>
Date: Thu, 03 Oct 2013 08:05:10 +0200

Am 03.10.2013 06:32, schrieb Stefan Monnier:
> Package: Emacs
> Version: 24.3.50
>
>
> I think python.el should try to automatically detect which kind of
> interactive loop is running and use the corresponding invocation, so
> users don't need to manually set python-shell-prompt-* and
> python-shell-completion-* variables (and they can then even switch
> between various interactive Python shells seamlessly).
>

Hi Stefan,

1+

However, you wouldn't want to send Python3 code to a running Python2, resp. IPython.
So it's not about what is running, rather to make run WRT kind of code.

See py-choose-shell and the related py-shell invocation.