code: def _repr_html_(self):
          
          row1 = '<tr><th style="text-align:center;" '
          row1 += 'colspan="2">{}<br><small>{{}}</small></th></tr>'
          rows = row1.format(getattr(self.header, 'name', ''))
          rows = rows.format(getattr(self.header, 'uwi', ''))
          s = '<tr><td><strong>{k}</strong></td><td>{v}</td></tr>'
  
          if getattr(self, 'location', None) is not None:
              for k, v in self.location.__dict__.items():
                  if k in ['deviation', 'position']:
                      continue
                  if k == 'crs':
                      v = v.__repr__()
                  rows += s.format(k=k, v=v)
  
          if getattr(self, 'data', None) is not None:
              v = ', '.join(sorted(list(self.data.keys())))
              rows += s.format(k="data", v=v)
  
          html = '<table>{}</table>'.format(rows)
          return html
docs: Jupyter Notebook magic repr function.