When a plot is displayed using show(plot, notebook_handle=True) then the subsequent updates are easily initiated using push_notebook(handle=plot_handle).
How can I push updates to a plot generated from bokeh.embed.components? There must be a way to obtain a comm handle for that plot…
Just to be clear, you are using components to embed a plot in some HTML inside a notebook, in an output cell? There's not a way to use components to do what you are asking, since there are extra bits required to set up comms that those templates do not know anything about. But, there is a "notebook_div" template that you could use, and embed the results of that in your HTML instead. Basically, you would want to imitate these few lines of code yourself:
When a plot is displayed using show(plot, notebook_handle=True) then the subsequent updates are easily initiated using push_notebook(handle=plot_handle).
How can I push updates to a plot generated from bokeh.embed.components? There must be a way to obtain a comm handle for that plot...
On Wednesday, January 25, 2017 at 3:52:26 PM UTC, Bryan Van de ven wrote:
Hi,
Just to be clear, you are using components to embed a plot in some HTML inside a notebook, in an output cell? There’s not a way to use components to do what you are asking, since there are extra bits required to set up comms that those templates do not know anything about. But, there is a “notebook_div” template that you could use, and embed the results of that in your HTML instead. Basically, you would want to imitate these few lines of code yourself:
When a plot is displayed using show(plot, notebook_handle=True) then the subsequent updates are easily initiated using push_notebook(handle=plot_handle).
How can I push updates to a plot generated from bokeh.embed.components? There must be a way to obtain a comm handle for that plot…
Thank you.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].