Why do I suddenly have a bouncing Python rocket?

橙三吉。 提交于 2019-12-12 08:31:00

问题


Recently, I made a simple change to some matplotlib code I run on OS X (10.10; Python 2.7.6), commenting out a single line that set the backend I use

#matplotlib.use('agg')

Now, as long as my code is running, I get a bouncing Python icon in my dock, that presents no UI and only offers Force Quit... as an command:

Generally dock icons that continue bouncing without any UI are a "bad thing". Why am I getting this and is it something I should be concerned about?


回答1:


Not a "bad thing". The icon appears in the dock when Python interacts with the GUI. Agg is a non-interactive backend. With agg you did not see the icon since there was no Python UI interaction.



来源:https://stackoverflow.com/questions/26680509/why-do-i-suddenly-have-a-bouncing-python-rocket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!