code: def display(obj, raw_output=False, **kwargs):
      
      if not Store.loaded_backends() and isinstance(obj, Dimensioned):
          raise RuntimeError('To use display on a HoloViews object ensure '
                             'a backend is loaded using the holoviews '
                             'extension.')
  
      raw = True
      if isinstance(obj, GridSpace):
          with option_state(obj):
              output = grid_display(obj)
      elif isinstance(obj, (CompositeOverlay, ViewableElement)):
          with option_state(obj):
              output = element_display(obj)
      elif isinstance(obj, (Layout, NdLayout, AdjointLayout)):
          with option_state(obj):
              output = layout_display(obj)
      elif isinstance(obj, (HoloMap, DynamicMap)):
          with option_state(obj):
              output = map_display(obj)
      elif isinstance(obj, Plot):
          output = render(obj)
      else:
          output = obj
          raw = kwargs.pop('raw', False)
  
      if raw_output:
          return output
      elif isinstance(output, tuple):
          data, metadata = output
      else:
          data, metadata = output, {}
      return IPython.display.display(data, raw=raw, metadata=metadata, **kwargs)
docs: Renders any HoloViews object to HTML and displays it
      using the IPython display function. If raw is enabled
      the raw HTML is returned instead of displaying it directly.