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, plotly embeds its data and a bit of 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

a sine wave with a frequency slider

plotly’s slider toggles the visibility of pre-computed traces — so we build one sin(f · x) curve per frequency value, make them all invisible except the default one, and let the slider switch between them in the browser

Loading...