How to use curdoc in Bokeh January 31, 2023February 29, 2024Pythoneo curdoc() is a function in Bokeh that returns the current document for a Bokeh application. You can use curdoc() to access the current document and add, remove, or modify elements in it.