ColumnDataSource is an object that stores Bokeh graph data. You can not use the ColumnDataSource and directly transfer your graph using Python dictionaries, pandas frames, etc., but for some functions, such as the presence of a pop-up window displaying information about the data, when the user hovers over the glyphs, you are forced to use ColumnDataSource, otherwise the popup will not be able to receive data. Other uses may include streaming data.
You can create a ColumnDataSource from dictionaries and pandas dataframes, and then use ColumnDataSource to create glyphs.
source share