(self)
return ''.join(html)
Build html string for table display in jupyter notebooks.
Build html string for table display in jupyter notebooks.
Build html string for table display in jupyter notebooks .
def _repr_html_(self):
        """
        Build html string for table display in jupyter notebooks.
        """
        html = ["<table id='domain' width=100%>"]

        # Table header
        columns = ['Name', 'Type', 'Values']
        header = "<tr>"
        header += ''.join(map(lambda l: "<td>{0}</td>".format(l), columns))
        header += "</tr>"
        html.append(header)

        # Add parameters
        html.append(self._html_table_rows())
        html.append("</table>")

        return ''.join(html)
def _repr_html_ ( self ) : html = [ "<table id='domain' width=100%>" ] # Table header columns = [ 'Name' , 'Type' , 'Values' ] header = "<tr>" header += '' . join ( map ( lambda l : "<td>{0}</td>" . format ( l ) , columns ) ) header += "</tr>" html . append ( header ) # Add parameters html . append ( self . _html_table_rows ( ) ) html . append ( "</table>" ) return '' . join ( html )