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.
Use Asynchronous Callbacks
How to leverage asynchronous callbacks to run I/O bound tasks in parallel.
Defer Callbacks Until Load
How to set up callbacks to defer a task until the application is loaded.
Periodically Run Callbacks
How to set up per-session callbacks that run periodically.
Run Tasks at Session Start or End
How to set up callbacks when a session is created and destroyed.
Schedule Global Tasks
How to schedule tasks that run independently of any user visiting an application.
Modify Bokeh Models
How to safely modify Bokeh models to avoid running into issues with the Bokeh Document lock.