code: def add_next_tick_callback(self, callback):
          ''' 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 : can be used with ``remove_next_tick_callback``
  
          .. 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.
  
          '''
          from ..server.callbacks import NextTickCallback
          cb = NextTickCallback(self, None)
          return self._add_session_callback(cb, callback, one_shot=True, originator=self.add_next_tick_callbackf add_next_tick_callback(self, callback):
          ''' 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 : can be used with ``remove_next_tick_callback``
  
          .. 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.
  
          '''
          from ..server.callbacks import NextTickCallback
          cb = NextTickCallback(self, None)
          return self._add_session_callback(cb, callback, one_shot=True, originator=self.add_next_tick_callback)
docs: 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 : can be used with ``remove_next_tick_callback``
  
          .. 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.