code: def _repr_html_(self, indices=None, iops=None, lx=None, li=None, lls=None):
          filter_ = self._current_slice_
          vals = self.flat
          if indices is None: indices = self._indices(filter_)
          if iops is None:
              ravi = self._raveled_index(filter_)
              iops = OrderedDict([name, iop.properties_for(ravi)] for name, iop in self._index_operations.items())
          if lls is None: lls = [self._max_len_names(iop, name) for name, iop in iops.items()]
          header_format =
          header = header_format.format(x=self.hierarchy_name(), i=__index_name__, iops="</b></th><th><b>".join(list(iops.keys())))
          to_print = [
  ]
          to_print.append('<table class="tg">')
          to_print.append(header)
          format_spec = self._format_spec(indices, iops, lx, li, lls, False)
          format_spec[:2] = ["<tr><td class=tg-left>{i}</td>".format(i=format_spec[0]), "<td class=tg-right>{i}</td>".format(i=format_spec[1])]
          for i in range(2, len(format_spec)):
              format_spec[i] = '<td class=tg-left>{c}</td>'.format(c=format_spec[i])
          format_spec = "".join(format_spec) + '</tr>'
          for i in range(self.size):
              to_print.append(format_spec.format(index=indices[i], value="{1:.{0}f}".format(__precision__, vals[i]), **dict((name, ' '.join(map(str, iops[name][i]))) for name in iops)))
          return '\n'.join(to_print)