{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1615","repository_url":"https://api.github.com/repos/obspy/obspy","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1615/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1615/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1615/events","html_url":"https://github.com/obspy/obspy/pull/1615","id":193754544,"number":1615,"title":"Can't get interactive plots in Jupyter Notebook","user":{"login":"vvug","id":24410343,"avatar_url":"https://avatars.githubusercontent.com/u/24410343?v=3","gravatar_id":"","url":"https://api.github.com/users/vvug","html_url":"https://github.com/vvug","followers_url":"https://api.github.com/users/vvug/followers","following_url":"https://api.github.com/users/vvug/following{/other_user}","gists_url":"https://api.github.com/users/vvug/gists{/gist_id}","starred_url":"https://api.github.com/users/vvug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvug/subscriptions","organizations_url":"https://api.github.com/users/vvug/orgs","repos_url":"https://api.github.com/users/vvug/repos","events_url":"https://api.github.com/users/vvug/events{/privacy}","received_events_url":"https://api.github.com/users/vvug/received_events","type":"User","site_admin":false},"labels":[{"id":13498870,"url":"https://api.github.com/repos/obspy/obspy/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/12","html_url":"https://github.com/obspy/obspy/milestones/1.1.0","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/12/labels","id":1383698,"number":12,"title":"1.1.0","description":"","creator":{"login":"megies","id":1842780,"avatar_url":"https://avatars.githubusercontent.com/u/1842780?v=3","gravatar_id":"","url":"https://api.github.com/users/megies","html_url":"https://github.com/megies","followers_url":"https://api.github.com/users/megies/followers","following_url":"https://api.github.com/users/megies/following{/other_user}","gists_url":"https://api.github.com/users/megies/gists{/gist_id}","starred_url":"https://api.github.com/users/megies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megies/subscriptions","organizations_url":"https://api.github.com/users/megies/orgs","repos_url":"https://api.github.com/users/megies/repos","events_url":"https://api.github.com/users/megies/events{/privacy}","received_events_url":"https://api.github.com/users/megies/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":57,"state":"open","created_at":"2015-10-29T15:40:55Z","updated_at":"2016-12-07T09:02:51Z","due_on":"2016-11-30T00:00:00Z","closed_at":null},"comments":11,"created_at":"2016-12-06T11:59:23Z","updated_at":"2016-12-07T15:11:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/1615","html_url":"https://github.com/obspy/obspy/pull/1615","diff_url":"https://github.com/obspy/obspy/pull/1615.diff","patch_url":"https://github.com/obspy/obspy/pull/1615.patch"},"body":"Hello,\r\n\r\nIf I run the following code in a Jupyter Notebook Python3 cell I get a static image plot instead of the more useful interactive plot.\r\n\r\n```python\r\n%matplotlib notebook\r\n\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nimport obspy\r\nst = obspy.read()\r\nst.plot()\r\n```\r\n\r\nIf in a following cell I execute\r\n\r\n```python\r\nt = np.arange(0.0, 2.0, 0.01)\r\ns = np.sin(2*np.pi*t)\r\nplt.plot(t, s)\r\n```\r\n\r\nI get the interactive plot, as expected.\r\nIs there a problem with ObsPy?\r\n\r\nI'm using obspy-python3 compiled from a reasonably up-to-date git snapshot on a Debian system.\r\n\r\npython3-obspy 1.0.2.post0+794.ge647893002\r\njupyter-notebook 4.2.3\r\npython3-jupyter-client 4.4.0\r\npython3-jupyter-core 4.2.0\r\npython3 3.5.2\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/265472241","html_url":"https://github.com/obspy/obspy/pull/1615#issuecomment-265472241","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1615","id":265472241,"user":{"login":"krischer","id":800487,"avatar_url":"https://avatars.githubusercontent.com/u/800487?v=3","gravatar_id":"","url":"https://api.github.com/users/krischer","html_url":"https://github.com/krischer","followers_url":"https://api.github.com/users/krischer/followers","following_url":"https://api.github.com/users/krischer/following{/other_user}","gists_url":"https://api.github.com/users/krischer/gists{/gist_id}","starred_url":"https://api.github.com/users/krischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krischer/subscriptions","organizations_url":"https://api.github.com/users/krischer/orgs","repos_url":"https://api.github.com/users/krischer/repos","events_url":"https://api.github.com/users/krischer/events{/privacy}","received_events_url":"https://api.github.com/users/krischer/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T15:11:15Z","updated_at":"2016-12-07T15:11:15Z","body":"This issue is now a PR that causes the `plot()` method to almost always return the figure handle. The only downside as far as I can see is that plots might now appear twice in the notebook it its the last command in a cell. I'm not sure there is anything we can do against that."}}
{"actor":{"display_login":"krischer"}}