{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/datashader/issues/264","repository_url":"https://api.github.com/repos/bokeh/datashader","labels_url":"https://api.github.com/repos/bokeh/datashader/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/datashader/issues/264/comments","events_url":"https://api.github.com/repos/bokeh/datashader/issues/264/events","html_url":"https://github.com/bokeh/datashader/issues/264","id":191556507,"number":264,"title":"How to visualize an interactive image in a saved jupyter notebook","user":{"login":"miguelgfierro","id":3491412,"avatar_url":"https://avatars.githubusercontent.com/u/3491412?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgfierro","html_url":"https://github.com/miguelgfierro","followers_url":"https://api.github.com/users/miguelgfierro/followers","following_url":"https://api.github.com/users/miguelgfierro/following{/other_user}","gists_url":"https://api.github.com/users/miguelgfierro/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgfierro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgfierro/subscriptions","organizations_url":"https://api.github.com/users/miguelgfierro/orgs","repos_url":"https://api.github.com/users/miguelgfierro/repos","events_url":"https://api.github.com/users/miguelgfierro/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgfierro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-24T16:15:05Z","updated_at":"2016-11-26T16:27:33Z","closed_at":"2016-11-26T16:27:33Z","body":"Hi, I'm doing the project described in #263 and I just realized that I can not show the interactive image in a the notebook that is saved in github. I can see the image correctly when I run the system in my server, however I would like to show the image also when I upload the code to github. \r\n\r\nThis is the code:\r\n\r\n```python\r\nplot_width  = 850\r\nplot_height = 600\r\nx_range = (-2.0e6, 2.5e6)\r\ny_range = (4.1e6, 7.8e6)\r\ndef create_image(x_range=x_range, y_range=y_range, w=plot_width, h=plot_height):\r\n    cvs = ds.Canvas(plot_width=w, plot_height=h, x_range=x_range, y_range=y_range)\r\n    agg = cvs.line(df_agg_mercator, 'Latitude', 'Longitude',  ds.count())\r\n    img = tf.shade(agg, cmap=Blues9, how='eq_hist')\r\n        \r\n    return img\r\n\r\ndef base_plot(tools='pan,wheel_zoom,reset',plot_width=plot_width, plot_height=plot_height,**plot_args):\r\n    p = figure(tools=tools, plot_width=plot_width, plot_height=plot_height,\r\n        x_range=x_range, y_range=y_range, outline_line_color=None,\r\n        min_border=0, min_border_left=0, min_border_right=0,\r\n        min_border_top=0, min_border_bottom=0, **plot_args)\r\n    \r\n    p.axis.visible = False\r\n    p.xgrid.grid_line_color = None\r\n    p.ygrid.grid_line_color = None\r\n    \r\n    return p\r\n\r\nArcGIS=WMTSTileSource(url='http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{Z}/{Y}/{X}.png')\r\np = base_plot()\r\np.add_tile(ArcGIS)\r\nInteractiveImage(p, create_image)\r\n```\r\nIs there a way to do this? I would be happy to have a screenshot of the image (whitout being interactive)\r\n"},"comment":{"url":"https://api.github.com/repos/bokeh/datashader/issues/comments/263072301","html_url":"https://github.com/bokeh/datashader/issues/264#issuecomment-263072301","issue_url":"https://api.github.com/repos/bokeh/datashader/issues/264","id":263072301,"user":{"login":"miguelgfierro","id":3491412,"avatar_url":"https://avatars.githubusercontent.com/u/3491412?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgfierro","html_url":"https://github.com/miguelgfierro","followers_url":"https://api.github.com/users/miguelgfierro/followers","following_url":"https://api.github.com/users/miguelgfierro/following{/other_user}","gists_url":"https://api.github.com/users/miguelgfierro/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgfierro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgfierro/subscriptions","organizations_url":"https://api.github.com/users/miguelgfierro/orgs","repos_url":"https://api.github.com/users/miguelgfierro/repos","events_url":"https://api.github.com/users/miguelgfierro/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgfierro/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T16:27:33Z","updated_at":"2016-11-26T16:27:33Z","body":"It can't be done because bokeh uses a python kernel to load the dynamic image and github doesn't have one: http://stackoverflow.com/questions/32518342/why-my-bokeh-plots-doesnt-work-on-github"}}
{"actor":{"display_login":"miguelgfierro"}}