Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mac shows an icon in the dock when using matplotlib.pyplot. #12918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luyiming opened this issue Dec 2, 2018 · 7 comments
Closed

Mac shows an icon in the dock when using matplotlib.pyplot. #12918

luyiming opened this issue Dec 2, 2018 · 7 comments

Comments

@luyiming
Copy link

luyiming commented Dec 2, 2018

Bug report

Bug summary

Importing matplotlib.pyplot shows an icon in the Mac OS dock panel.

Code for reproduction

import matplotlib.pyplot as plt

Expected outcome
No icon in the dock.

Matplotlib version

  • Operating system: macOS mojave 10.14
  • Matplotlib version: 3.0.1
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.6.7
  • Jupyter version (if applicable):
  • Other libraries:
@luyiming
Copy link
Author

luyiming commented Dec 2, 2018

Before:
Before

After:
After

@jklymak
Copy link
Member

jklymak commented Dec 2, 2018

This is kind of like #12724

On master if I do

$ python
Python 3.7.0 | packaged by conda-forge | (default, Aug 27 2018, 17:24:52)
[Clang 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib import pyplot as plt

I don't get a dock icon.

But if I call ipython and do the same thing I do get a dock icon. Not sure why ipython behaves differently....

@WeatherGod
Copy link
Member

WeatherGod commented Dec 2, 2018 via email

@jklymak
Copy link
Member

jklymak commented Dec 2, 2018

Hmmm, OTOH, if I bisect this, it indeed didn't happen for 3.0.0, so it was likely the backend selection logic we introduced recently. So, there is some bad ipython interaction there, but maybe we need an ipython expert to get involved.

@tacaswell
Copy link
Member

@jklymak what does this bisect back to?

I suspect this is yet more issues with event trying to import macosx....

@tacaswell
Copy link
Member

@WeatherGod that is not the case in the terminal if you do not use %matplotlib.

@jklymak
Copy link
Member

jklymak commented Feb 4, 2019

This still pops an icon on 3.0.x, but is fixed on master, so when 3.1 should fix this annoyance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants