code: def _repr_mimebundle_(self, *args, **kwargs):
          
          try:
              if self.logo:
                  p = pn.Row(
                      self.logo_panel,
                      self.panel,
                      margin=0)
                  return p._repr_mimebundle_(*args, **kwargs)
              else:
                  return self.panel._repr_mimebundle_(*args, **kwargs)
          except:
              raise RuntimeError("Panel does not seem to be set up properly")
docs: Display in a notebook or a server