striplog/legend.py
def _repr_html_(self):
        """
        Jupyter Notebook magic repr function.
        """
        all_keys = list(set(itertools.chain(*[d.keys for d in self])))
        rows = ''
        for decor in self:
            th, tr = decor._repr_html_row_(keys=all_keys)
            rows += '<tr>{}</tr>'.format(tr)
        header = '<tr>{}</tr>'.format(th)
        html = '<table>{}{}</table>'.format(header, rows)
        return html
def _repr_html_(self):
        """
        Jupyter Notebook magic repr function.
        """
        all_keys = list(set(itertools.chain(*[d.keys for d in self])))
        rows = ''
        for decor in self:
            th, tr = decor._repr_html_row_(keys=all_keys)
            rows += '<tr>{}</tr>'.format(tr)
        header = '<tr>{}</tr>'.format(th)
        html = '<table>{}{}</table>'.format(header, rows)
        return html
def _repr_html_ ( self ) : all_keys = list ( set ( itertools . chain ( * [ d . keys for d in self ] ) ) ) rows = '' for decor in self : th , tr = decor . _repr_html_row_ ( keys = all_keys ) rows += '<tr>{}</tr>' . format ( tr ) header = '<tr>{}</tr>' . format ( th ) html = '<table>{}{}</table>' . format ( header , rows ) return html
Jupyter Notebook magic repr function.
Jupyter Notebook magic repr function .