source.push_notebook() used to work before 0.11.0. Now it is replaced with bokeh.io.push_notebook, but there are zero examples on how to update a particular plot:
push_notebook(document=None, state=None, handle=None)¶
Update the last-shown plot in a Jupyter notebook with the new data or property values.
document (Document, optional) – A
Documentto push from. If None, uses
state (State, optional) – A Bokeh State object
Typical usage is typically similar to this:
from bokeh.io import push_notebook # code to create a plot show(plot) plot.title = "New Title" # This will cause the title to update push_notebook()
What’s a document? What’s a handle?
If I pass the result of figure() or p.circle() to either handle or document I get errors, i.e. these are not the objects expected by bokeh.io.push_notebook.
I’m happy to PR to update the documentation, but need to figure out what a document is and what a handle is.