WebGL is a JavaScript API that is available in almost every popular browser in the market. Fundamentally, the Bokeh plots that are displayed on your browser do so with the help of plugins. This could slow down the rendering of plots, especially if the dataset that is used to render these plots is huge! WebGL renders plots using a GPU, without the need for plugins.
In order to enable WebGL while rendering plots, you simply need to use the code shown here while constructing the figure of the plot:
plot = figure(output_backend = 'webgl')
The only downside to rendering the plot in WebGL is that it does not support every component that Bokeh has to offer. At the moment, only two types of glyphs are supported with WebGL rendering. They are:
- Circle glyphs
- Line gyphs
The markers that are supported with WebGL are as follows:
- asterisk
- square...