'Add callback to be invoked once, after a specified timeout passes.
Args:
callback (callable) :
A callback function to execute after timeout
timeout_milliseconds (int) :
Number of milliseconds before callback execution.
Returns:
TimeoutCallback :
.. note::
Timeout callbacks only work within the context of a Bokeh server
session. This function will no effect when Bokeh outputs to
standalone HTML or Jupyter notebook cells.'

def add_timeout_callback(self, callback, timeout_milliseconds):

    from .server.callbacks import TimeoutCallback
    cb = TimeoutCallback(self, None, timeout_milliseconds)
    return self._add_session_callback(cb, callback, one_shot=True)
