{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/5208","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/5208/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/5208/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/5208/events","html_url":"https://github.com/kivy/kivy/issues/5208","id":232897436,"number":5208,"title":"matplotlib.pyplot kind of breaks kivy","user":{"login":"tfonfara","id":728683,"avatar_url":"https://avatars1.githubusercontent.com/u/728683?v=3","gravatar_id":"","url":"https://api.github.com/users/tfonfara","html_url":"https://github.com/tfonfara","followers_url":"https://api.github.com/users/tfonfara/followers","following_url":"https://api.github.com/users/tfonfara/following{/other_user}","gists_url":"https://api.github.com/users/tfonfara/gists{/gist_id}","starred_url":"https://api.github.com/users/tfonfara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfonfara/subscriptions","organizations_url":"https://api.github.com/users/tfonfara/orgs","repos_url":"https://api.github.com/users/tfonfara/repos","events_url":"https://api.github.com/users/tfonfara/events{/privacy}","received_events_url":"https://api.github.com/users/tfonfara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-01T14:26:37Z","updated_at":"2017-06-01T14:33:51Z","closed_at":null,"body":"### Versions\r\n\r\n* macOS Sierra 10.12.5\r\n* Python 2.7.13\r\n* Anaconda 4.4.0 (x86_64)\r\n* IPython 5.3.0\r\n* Kivy 1.10.0\r\n* Kivy installation method: Homebrew with pip \r\n\r\n### Description\r\n\r\nWhen I try to run e.g. kivy pong example step 1 (this is reproducible on other projects as well, but I wanted to keep it really simple) from ipython console (also tried with pycharm) it opens the window as \"standalone app\" that shows an icon in the dock, appears in the cmd + tab launcher and so on. Now when I import matplotlib with `import matplotlib.pyplot as plt` and run the code again, the window will not have its own icon and can not be brought to the front (visible for a short moment, then it will be covered by the app that was in the front before).\r\nTo me it looks like a bug. Can you confirm that or tell me a solution for that please?\r\n\r\n### Code and Logs\r\n\r\nmain.py\r\n```python\r\nfrom kivy.app import App\r\nfrom kivy.uix.widget import Widget\r\n\r\nimport matplotlib.pyplot as plt #run this code with and without this line\r\n\r\nclass PongGame(Widget):\r\n    pass\r\n\r\n\r\nclass PongApp(App):\r\n    def build(self):\r\n        return PongGame()\r\n\r\n\r\nif __name__ == '__main__':\r\n    PongApp().run()\r\n```\r\n\r\npong.kv\r\n```\r\n#:kivy 1.0.9\r\n```"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/305512053","html_url":"https://github.com/kivy/kivy/issues/5208#issuecomment-305512053","issue_url":"https://api.github.com/repos/kivy/kivy/issues/5208","id":305512053,"user":{"login":"KeyWeeUsr","id":8825439,"avatar_url":"https://avatars3.githubusercontent.com/u/8825439?v=3","gravatar_id":"","url":"https://api.github.com/users/KeyWeeUsr","html_url":"https://github.com/KeyWeeUsr","followers_url":"https://api.github.com/users/KeyWeeUsr/followers","following_url":"https://api.github.com/users/KeyWeeUsr/following{/other_user}","gists_url":"https://api.github.com/users/KeyWeeUsr/gists{/gist_id}","starred_url":"https://api.github.com/users/KeyWeeUsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeyWeeUsr/subscriptions","organizations_url":"https://api.github.com/users/KeyWeeUsr/orgs","repos_url":"https://api.github.com/users/KeyWeeUsr/repos","events_url":"https://api.github.com/users/KeyWeeUsr/events{/privacy}","received_events_url":"https://api.github.com/users/KeyWeeUsr/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T14:33:51Z","updated_at":"2017-06-01T14:33:51Z","body":"I haven't used matplotlib for a while, but try [this](https://github.com/KeyWeeUsr/KrySA/blob/master/krysa/tasks/plot.py#L12) fix. I think matplotlib just tried to steal the focus again and they have a fix for that with `matplotlib.use('Agg')`.\r\n\r\nI'm not sure if that's the case."}}
{"actor":{"display_login":"KeyWeeUsr"}}