Widgets offer real-time interaction on the frontend. Widgets have the capability to modify and update plots at runtime. They can run either a Bokeh server or a standalone HTML application. For using widgets, you need to specify the functionality. It can be nested inside the layout. There are two approaches to add the functionality of widgets into the program:
- CustomJS callback
- With the Bokeh server and setup event handler, such as onclick or onchange event