I would like to save a snapshot of Bokeh plot created by a Bokeh server application in all of the following ways:
- Download the contents of the ColumnDataSource as JSON/msgpack/whatever
- Download a static HTML file of the Bokeh plot
- Publish that bokeh plot as a gist
Dask's use case
For example with Dask.distributed, the current best way to have a discussion about performance is by referring to our task-stream diagnostic Bokeh plot. This occurs when I write blogposts discussing algorithms and when users have performance questions. If there was a Bokeh Tool that let users publish a static view of their task-stream plot as a gist from within the Dask Dashboard then it would elevate the level of conversation significantly (and produce a lot of cool looking Bokeh images). As a pleasant side effect, I would start including Bokeh plots way more often when writing blogposts and documentation.
How to do this?
When I briefly mentioned this to @birdsarah she recommended building a custom tool like the current SaveTool for Dask which would dump to one of the above forms rather than to png. However, looking at this a bit more I don't think that this functionality necessarily needs to be Dask-specific. This may be of general utility and would, I think, encourage people to embed Bokeh plots more often within broadcast publications. For example if they built a Bokeh plot in a notebook but wanted to include it in a blogpost then this might help.
I would like to save a snapshot of Bokeh plot created by a Bokeh server application in all of the following ways:
Dask's use case
For example with Dask.distributed, the current best way to have a discussion about performance is by referring to our task-stream diagnostic Bokeh plot. This occurs when I write blogposts discussing algorithms and when users have performance questions. If there was a Bokeh Tool that let users publish a static view of their task-stream plot as a gist from within the Dask Dashboard then it would elevate the level of conversation significantly (and produce a lot of cool looking Bokeh images). As a pleasant side effect, I would start including Bokeh plots way more often when writing blogposts and documentation.
How to do this?
When I briefly mentioned this to @birdsarah she recommended building a custom tool like the current
SaveToolfor Dask which would dump to one of the above forms rather than to png. However, looking at this a bit more I don't think that this functionality necessarily needs to be Dask-specific. This may be of general utility and would, I think, encourage people to embed Bokeh plots more often within broadcast publications. For example if they built a Bokeh plot in a notebook but wanted to include it in a blogpost then this might help.