{"action":"closed","issue":{"url":"https://api.github.com/repos/rlworkgroup/garage/issues/309","repository_url":"https://api.github.com/repos/rlworkgroup/garage","labels_url":"https://api.github.com/repos/rlworkgroup/garage/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/rlworkgroup/garage/issues/309/comments","events_url":"https://api.github.com/repos/rlworkgroup/garage/issues/309/events","html_url":"https://github.com/rlworkgroup/garage/issues/309","id":352304278,"node_id":"MDU6SXNzdWUzNTIzMDQyNzg=","number":309,"title":"CMAES shouldn't globally import matplotlib","user":{"login":"eric-heiden","id":5869435,"node_id":"MDQ6VXNlcjU4Njk0MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/5869435?v=4","gravatar_id":"","url":"https://api.github.com/users/eric-heiden","html_url":"https://github.com/eric-heiden","followers_url":"https://api.github.com/users/eric-heiden/followers","following_url":"https://api.github.com/users/eric-heiden/following{/other_user}","gists_url":"https://api.github.com/users/eric-heiden/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-heiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-heiden/subscriptions","organizations_url":"https://api.github.com/users/eric-heiden/orgs","repos_url":"https://api.github.com/users/eric-heiden/repos","events_url":"https://api.github.com/users/eric-heiden/events{/privacy}","received_events_url":"https://api.github.com/users/eric-heiden/received_events","type":"User","site_admin":false},"labels":[{"id":960871807,"node_id":"MDU6TGFiZWw5NjA4NzE4MDc=","url":"https://api.github.com/repos/rlworkgroup/garage/labels/housecleaning","name":"housecleaning","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-20T21:32:24Z","updated_at":"2018-08-27T21:55:01Z","closed_at":"2018-08-27T21:55:01Z","author_association":"MEMBER","body":"Since CMAES imports matplotlib right at in the beginning, and is included into all algorithms via `algos/__init__.py`, any other code that follows and makes changes to matplotlib rendering (e.g. via `matplotlib.use('Agg')`) will fail with the exception:\r\n```\r\nUserWarning: \r\nThis call to matplotlib.use() has no effect because the backend has already\r\nbeen chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,\r\nor matplotlib.backends is imported for the first time.\r\n```\r\nSo CMAES should only import matplotlib where it is needed."}}
{"actor":{"display_login":"ryanjulian"}}