This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.server.callbacks — Bokeh 0.12.11 documentation

bokeh.server.callbacks

Provide classes to represent callback code that can be associate with Bokeh Documents and Sessions.

class NextTickCallback(document, callback, id=None)[source]

Represent a callback to execute on the next IOLoop “tick”.

__init__(document, callback, id=None)[source]
Parameters:
class PeriodicCallback(document, callback, period, id=None)[source]

Represent a callback to execute periodically on the IOLoop at a specified periodic time interval.

__init__(document, callback, period, id=None)[source]
Parameters:
period

The period time (in milliseconds) that this callback should repeat execution at.

class SessionCallback(document, callback, id=None)[source]

A base class for callback objects associated with Bokeh Documents and Sessions.

__init__(document, callback, id=None)[source]
Parameters:
remove()[source]

Remove this session callback its document.

callback

The callable that this callback wraps.

id

A unique ID for this callback

class TimeoutCallback(document, callback, timeout, id=None)[source]

Represent a callback to execute once on the IOLoop after a specifeed time interval passes.

__init__(document, callback, timeout, id=None)[source]
Parameters:
timeout

The timeout (in milliseconds) that the callback should run after.