Register Session Callbacks#
These How-to pages provide solutions for common tasks related to setting up callbacks on session related events (e.g. on page load or when a session is destroyed) and defining periodic tasks.
How to leverage asynchronous callbacks to run I/O bound tasks in parallel.
How to defer execution of bound and displayed functions until the application is loaded with defer_load
.
How to set up callbacks to defer a task until the application is loaded with pn.state.onload
.
How to set up per-session callbacks that run periodically.
How to set up callbacks when a session is created and destroyed.
How to schedule tasks that run independently of any user visiting an application.
How to safely modify Bokeh models to avoid running into issues with the Bokeh Document
lock.
How to add notifications when the application is ready and when it loses the server connection.
Examples#
Use add_periodic_callback
to stream data to a Bokeh plot.
Use add_periodic_callback
to stream data to Trend
indicators.
Use add_periodic_callback
to stream data to a Perspective
pane.
Use add_periodic_callback
to stream data to a Tabulator
widget.