Subject: Re: bug#25306: emacs 25.1 cannot deal with the newer ipython (5.1.0) inferior ansi color

From: [email-masked]
Date: Mon, 03 Jul 2017 11:24:38 -0400

forcemerge 21381 25306
quit

"XP Chen" <[email-masked]> writes:
>
> When send python script to the ipython inferior, it shows:
>
>       Python 3.5.2 (default, Nov  7 2016, 11:31:36)
>       Type "copyright", "credits" or "license" for more information.
>      
>       IPython 5.1.0 -- An enhanced Interactive Python.
>       ?         -> Introduction and overview of IPython's features.
>       %quickref -> Quick reference.
>       help      -> Python's own help system.
>       object?   -> Details about 'object', use 'object??' for extra details.
>       Using matplotlib backend: TkAgg
>      
>       [J---------------------------------------------------------------------------
>       NameError                                 Traceback (most recent call last)
>       <ipython-input-1-b5cc5cb08aa6> in <module>()
>       ----> 1 execfile(r'/tmp/py-shell-completion-setup-code.py') # PYTHON-MODE
>      
>       NameError: name 'execfile' is not defined
>      
>       [J---------------------------------------------------------------------------
>       NameError                                 Traceback (most recent call last)
>       <ipython-input-2-a8c6ebfb943a> in <module>()
>       ----> 1 execfile(r'/tmp/ipython-1723HV1.py') # PYTHON-MODE
>
>       NameError: name 'execfile' is not defined
>      
>       [J[6n[JIn [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]:
>       [8D[8C[8D[J[6n[JIn
>       [3]: [8D[8C
>
> The problem of NameError: name 'execfile' is not defined can ignored
> it. However the ansi color of ipython cannot deal with the emacs25.1

As far as I can tell, this is the same as Bug#21381; the fix for that
one solves this as well.