[Matplotlib-devel] IPython terminal issues with matplotlib 3.0 on macOS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Matplotlib-devel] IPython terminal issues with matplotlib 3.0 on macOS

Daniele Nicolodi
Hello,

I just upgraded to matplotlib 3.0 and I'm noticing an annoying issue
using matplotlib in the IPython terminal.  When I import
matplotlib.pyplot the terminal looses focus and some spurious escape
sequences appear in the terminal (last line below):

$ python.app -m IPython
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib.pyplot as plt



^[[47;1RIn [2]:

I guess this is due to matplotlib probing the different backends, but I
don't know where to look for the exact cause of this.

Cheers,
Dan
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: IPython terminal issues with matplotlib 3.0 on macOS

Matthias BUSSONNIER
The spurious escape sequence is an IPython bug for sure. We don't know exactly how to fix it.
The loosing focus might also be, we're not sure where this came from, it appear only when using the Python.app launcher. Maybe some changes in the gui integration. 

-- 
Matthias

On Wed, 10 Oct 2018 at 18:40, Daniele Nicolodi <[hidden email]> wrote:
Hello,

I just upgraded to matplotlib 3.0 and I'm noticing an annoying issue
using matplotlib in the IPython terminal.  When I import
matplotlib.pyplot the terminal looses focus and some spurious escape
sequences appear in the terminal (last line below):

$ python.app -m IPython
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib.pyplot as plt



^[[47;1RIn [2]:

I guess this is due to matplotlib probing the different backends, but I
don't know where to look for the exact cause of this.

Cheers,
Dan
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: IPython terminal issues with matplotlib 3.0 on macOS

tcaswell
Changes on the mpl side or on the jupyter side?

We also have https://github.com/matplotlib/matplotlib/issues/12188 which is due to mpl not handling the OSX backend discovery correctly in all cases.

Tom

On Wed, Oct 10, 2018 at 9:42 PM Matthias Bussonnier <[hidden email]> wrote:
The spurious escape sequence is an IPython bug for sure. We don't know exactly how to fix it.
The loosing focus might also be, we're not sure where this came from, it appear only when using the Python.app launcher. Maybe some changes in the gui integration. 

-- 
Matthias

On Wed, 10 Oct 2018 at 18:40, Daniele Nicolodi <[hidden email]> wrote:
Hello,

I just upgraded to matplotlib 3.0 and I'm noticing an annoying issue
using matplotlib in the IPython terminal.  When I import
matplotlib.pyplot the terminal looses focus and some spurious escape
sequences appear in the terminal (last line below):

$ python.app -m IPython
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib.pyplot as plt



^[[47;1RIn [2]:

I guess this is due to matplotlib probing the different backends, but I
don't know where to look for the exact cause of this.

Cheers,
Dan
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: IPython terminal issues with matplotlib 3.0 on macOS

Daniele Nicolodi
In reply to this post by Matthias BUSSONNIER
On 10-10-2018 19:42, Matthias Bussonnier wrote:
> The spurious escape sequence is an IPython bug for sure. We don't know
> exactly how to fix it.

The problem was not there with the older matplotlib, I find it hard to
to blame IPython for it, there must be something that triggers it when
matplotlib.pyplot is imported.

> The loosing focus might also be, we're not sure where this came from, it
> appear only when using the Python.app launcher. Maybe some changes in
> the gui integration.

:-(   It is very annoying.

Cheers,
Dan
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel