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.

unlike ipywidgets, altair renders to a Vega-Lite spec whose interactivity runs client-side in the browser; so the slider below should keep working in the static jupyter book, with no live kernel attached

The history saving thread hit an unexpected error (OperationalError('attempt to write a readonly database')).History will not be written to the database.

a sine wave with a frequency slider

the trick is to do the actual sin() computation in Vega, via a transform_calculate that reads a parameter bound to a slider — that way the plot recomputes itself in the browser when you drag the slider

Loading...