Please help, like plt.clf is used in matplotlib to overcome this and what can be used in bokeh?
push_notebook is an option)? What do you actually need to accomplish? If you are “clearing” to redraw the same glyphs with new data, you should just update the data. Bokeh is very good for updating data sources. If you are “clearing” to make a completely different kind of plot, you should just make a new plot and hide or remove the old plot entirely. Doing “surgery” to remove glyphs and their data sources from an existing plot (i.e. the direct analogue to
clf) may work but would be discouraged and not idiomatic for Bokeh. But we can’t offer guidance until we know more about your use case.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.