{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2430","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2430/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2430/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2430/events","html_url":"https://github.com/bokeh/bokeh/issues/2430","id":90257128,"number":2430,"title":"Improve docs on how to output notebook in glyphs  - ipython notebook examples","user":{"login":"chdoig","id":4940549,"avatar_url":"https://avatars.githubusercontent.com/u/4940549?v=3","gravatar_id":"","url":"https://api.github.com/users/chdoig","html_url":"https://github.com/chdoig","followers_url":"https://api.github.com/users/chdoig/followers","following_url":"https://api.github.com/users/chdoig/following{/other_user}","gists_url":"https://api.github.com/users/chdoig/gists{/gist_id}","starred_url":"https://api.github.com/users/chdoig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chdoig/subscriptions","organizations_url":"https://api.github.com/users/chdoig/orgs","repos_url":"https://api.github.com/users/chdoig/repos","events_url":"https://api.github.com/users/chdoig/events{/privacy}","received_events_url":"https://api.github.com/users/chdoig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/tag:%20docs","name":"tag: docs","color":"D0CBB8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-23T01:23:49Z","updated_at":"2015-06-23T12:34:45Z","closed_at":null,"body":"There are two notebooks examples in that use the glyphs interface:\r\nhttps://github.com/bokeh/bokeh/tree/master/examples/glyphs\r\n\r\nIn those, it seems that you need the following to output to the notebook:\r\n\r\n```python\r\nfrom bokeh.util.notebook import load_notebook\r\nload_notebook()\r\n\r\nfrom bokeh.util.notebook import publish_display_data\r\nfrom bokeh.embed import notebook_div\r\ndata = {'text/html': notebook_div(plot)}\r\npublish_display_data(data)\r\n\r\n# or\r\n\r\nfrom IPython.core.display import HTML\r\nfrom bokeh.embed import notebook_div\r\nHTML(notebook_div(plot))\r\n```\r\n\r\nThe docs http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#ipython-notebook mention the ```notebook_div()```, but not the other bokeh.utils that are required to render the plot properly in the notebook.\r\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/114478381","html_url":"https://github.com/bokeh/bokeh/issues/2430#issuecomment-114478381","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2430","id":114478381,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars.githubusercontent.com/u/1078448?v=3","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":"2015-06-23T12:34:45Z","updated_at":"2015-06-23T12:34:45Z","body":"I always just use `HTML` I don't remember the rationale for `publish_display_data`. Can we just get rid of it?"}}