Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

like altair and plotly, bokeh embeds its data and JavaScript into the output, so the interactivity runs client-side in the browser; the slider below should keep working in the static jupyter book, with no live kernel attached

Loading...
Loading...

a sine wave with a frequency slider

bokeh lets us attach a CustomJS callback to the slider — so unlike plotly we don’t pre-compute one curve per value: the sin(f · x) is recomputed in the browser every time the slider moves, giving a smooth continuous control

Loading...
Loading...