code: def _repr_html_(self):
          
          # Make header.
          r = '</th><th>'.join(['Index', 'UWI', 'Data', 'Curves'])
          rows = '<tr><th>{}</th></tr>'.format(r)
  
          # Make rows.
          for i, w in enumerate(self.__list):
              rows += '<tr><td>{}</td>'.format(i)
              rows += '<td><strong>{}</strong></td>'.format(w.uwi)
              rows += '<td>{}&nbsp;curves</td>'.format(len(w.data))
              rows += '<td>{}</td></tr>'.format(', '.join(w.data.keys()))
          html = '<table>{}</table>'.format(rows)
  
          return html
docs: Jupyter Notebook magic repr function.