Link Parameters with Callbacks API#
If you need full control over how your GUI is set up then you can manually define widgets that link directly to other objects using either Python or JavaScript (JS) callbacks. Python callbacks are simple for Python users to write and can directly access Python data structures, while JS callbacks can directly manipulate the displayed HTML document and allow setting up dynamic behavior even for exported HTML files (with no Python process running). This section contains how-to guides that address common tasks related the use of callbacks.
.link
How to use the convenient, high-level .link
API to link parameters in Python.
.watch
How to use the flexible, low-level .watch
API to trigger callbacks in Python.
How to link parameters of two objects in Javascript.
How to link Bokeh and HoloViews plot parameters in Javascript.
How to write arbitrary Javascript callbacks linking one or more objects.
Examples#
Build a UI that allows editing a Bokeh figure in JS.
JS Link JSON editors to allow live editing a Deck.gl plot.
JS Link widgets to a glyph in a HoloViews plot.
JS Link a widget to a Plotly plot.
JS Link a widget to a Vega plot.