'Add callback to be invoked once on the next tick of the event loop.
Args:
callback (callable) :
A callback function to execute on the next tick.
Returns:
NextTickCallback :
.. note::
Next tick 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_next_tick_callback(self, callback):

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