code: def get_plot(self_or_cls, obj, doc=None, renderer=None, **kwargs):
          
          if doc is None:
              doc = Document() if self_or_cls.notebook_context else curdoc()
  
          if self_or_cls.notebook_context:
              curdoc().theme = self_or_cls.theme
          doc.theme = self_or_cls.theme
          plot = super(BokehRenderer, self_or_cls).get_plot(obj, renderer, **kwargs)
          plot.document = doc
          return plot
docs: Given a HoloViews Viewable return a corresponding plot instance.
          Allows supplying a document attach the plot to, useful when
          combining the bokeh model with another plot.