Subject: Re: bug#25363: 24.5; ipython integration

From: Andreas Röhler <[email-masked]>
Date: Wed, 11 Jan 2017 17:08:05 +0100

On 05.01.2017 02:20, Georges Dupret wrote:
> The ipython interpretor called within emacs does not handle identation
> properly. The following happens when hitting return:
>
> In [5]: for x in range(3):
>   File "<ipython-input-5-782f5b7cd5c6>", line 1
>     for x in range(3):
>                       ^
> SyntaxError: unexpected EOF while parsing
>
> Note that I have to set this in .emacs otherwise I get bad characters:
> (setq python-shell-interpreter-args " --simple-prompt --pprint")
>
> Best,
> ged
>

Maybe RET is bound to   comint-send-input?

Then C-j should do th trick: electric-newline-and-maybe-indent