code: def set_figure(self, figure, handle=None):
          
          self.figure = figure
          self.bkimage = None
          self._push_handle = handle
  
          wd = figure.plot_width
          ht = figure.plot_height
  
          self.configure_window(wd, ht)
  
          doc = curdoc()
          self.logger.info(str(dir(doc)))
          #doc.add_periodic_callback(self.timer_cb, 100)
          self.logger.info("figure set")
docs: Call this with the Bokeh figure object.