{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/4247","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/4247/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/4247/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/4247/events","html_url":"https://github.com/bokeh/bokeh/issues/4247","id":151743666,"number":4247,"title":"Performance issues after repeated `push_notebook` calls","user":{"login":"stanleyguan","id":5945288,"avatar_url":"https://avatars2.githubusercontent.com/u/5945288?v=4","gravatar_id":"","url":"https://api.github.com/users/stanleyguan","html_url":"https://github.com/stanleyguan","followers_url":"https://api.github.com/users/stanleyguan/followers","following_url":"https://api.github.com/users/stanleyguan/following{/other_user}","gists_url":"https://api.github.com/users/stanleyguan/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyguan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyguan/subscriptions","organizations_url":"https://api.github.com/users/stanleyguan/orgs","repos_url":"https://api.github.com/users/stanleyguan/repos","events_url":"https://api.github.com/users/stanleyguan/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyguan/received_events","type":"User","site_admin":false},"labels":[{"id":2031795,"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/32","html_url":"https://github.com/bokeh/bokeh/milestone/32","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/32/labels","id":2511040,"number":32,"title":"0.12.x","description":"","creator":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars3.githubusercontent.com/u/1078448?v=4","gravatar_id":"","url":"https://api.github.com/users/bryevdv","html_url":"https://github.com/bryevdv","followers_url":"https://api.github.com/users/bryevdv/followers","following_url":"https://api.github.com/users/bryevdv/following{/other_user}","gists_url":"https://api.github.com/users/bryevdv/gists{/gist_id}","starred_url":"https://api.github.com/users/bryevdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryevdv/subscriptions","organizations_url":"https://api.github.com/users/bryevdv/orgs","repos_url":"https://api.github.com/users/bryevdv/repos","events_url":"https://api.github.com/users/bryevdv/events{/privacy}","received_events_url":"https://api.github.com/users/bryevdv/received_events","type":"User","site_admin":false},"open_issues":163,"closed_issues":1,"state":"open","created_at":"2017-05-09T19:50:25Z","updated_at":"2017-09-17T01:19:05Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-04-28T21:07:54Z","updated_at":"2017-09-18T01:25:36Z","closed_at":null,"author_association":"NONE","body":"### Description of expected behavior and the observed behavior\n\nExpected: Reasonably performant visualizations when pushing many simple updates to a single plot in a Jupyter Notebook. In addition, time taken to push updates to a new plot shouldn't be affected by the number of pushes to an older plot.\n\nObserved: Performance appears to degrade linearly with the number of previous `push_notebook` calls.\n### Self-contained example code that generates the issue (if possible)\n\n```\nimport bokeh\nimport bokeh.plotting as bk\nbokeh.io.output_notebook()\nfig = bk.figure()\nl = fig.line([], [])\nbk.show(fig)\n```\n\n```\n%%time\nfor i in range(1000):\n    l.data_source.stream({'x':[i],'y':[i]})\n    bokeh.io.push_notebook()\n```\n\nRun the above loop a couple of times in its own cell and you should notice performance degrade from about 100 points a second to 50 points a second after a few loops. The degraded performance does not restore by pushing to a new, different plot. Performing a kernel reset restores the starting performance.\n### Stack traceback and/or browser developer tools console output\n\nNothing unusual spotted.\n### Version Information\n\n```\nPython version      :  2.7.11 |Anaconda 2.5.0 (x86_64)| (default, Dec  6 2015, 18:57:58) \nIPython version     :  4.1.2\nBokeh version       :  0.11.1\nBokehJS static path :  ~/lib/python2.7/site-packages/bokeh/server/static\n```\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/330108644","html_url":"https://github.com/bokeh/bokeh/issues/4247#issuecomment-330108644","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/4247","id":330108644,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars3.githubusercontent.com/u/1078448?v=4","gravatar_id":"","url":"https://api.github.com/users/bryevdv","html_url":"https://github.com/bryevdv","followers_url":"https://api.github.com/users/bryevdv/followers","following_url":"https://api.github.com/users/bryevdv/following{/other_user}","gists_url":"https://api.github.com/users/bryevdv/gists{/gist_id}","starred_url":"https://api.github.com/users/bryevdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryevdv/subscriptions","organizations_url":"https://api.github.com/users/bryevdv/orgs","repos_url":"https://api.github.com/users/bryevdv/repos","events_url":"https://api.github.com/users/bryevdv/events{/privacy}","received_events_url":"https://api.github.com/users/bryevdv/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T01:25:36Z","updated_at":"2017-09-18T01:25:36Z","author_association":"OWNER","body":"This should be fixed by #6945 The following version:\r\n```\r\n%%time\r\nfor i in range(500):\r\n    l.data_source.stream({'x':[i],'y':[i]}, rollover=200)\r\n```\r\nruns in ~550ms even after dozens of executions"}}
{"actor":{"display_login":"bryevdv"}}