code: def _repr_html_(self):
      
      parts = []
      if self._class:
        parts.append('<div id="hh_%s" class="%s">%s</div>' % (self._id, self._class, self._markup))
      else:
        parts.append('<div id="hh_%s">%s</div>' % (self._id, self._markup))
  
      if len(self._script) != 0:
        parts.append('<script>')
        parts.append('require([')
        parts.append(','.join(['"%s"' % d[0] for d in self._dependencies]))
        parts.append('], function(')
        parts.append(','.join([d[1] for d in self._dependencies]))
        parts.append(') {')
        parts.append(self._script)
        parts.append('});')
        parts.append('</script>')
  
      return ''.join(parts)
docs: Generates the HTML representation.