striplog/component.py
def _repr_html_(self):
        """
        Jupyter Notebook magic repr function.
        """
        rows = ''
        s = '<tr><td><strong>{k}</strong></td><td>{v}</td></tr>'
        for k, v in self.__dict__.items():
            rows += s.format(k=k, v=v)
        html = '<table>{}</table>'.format(rows)
        return html
def _repr_html_(self):
        """
        Jupyter Notebook magic repr function.
        """
        rows = ''
        s = '<tr><td><strong>{k}</strong></td><td>{v}</td></tr>'
        for k, v in self.__dict__.items():
            rows += s.format(k=k, v=v)
        html = '<table>{}</table>'.format(rows)
        return html
def _repr_html_ ( self ) : rows = '' s = '<tr><td><strong>{k}</strong></td><td>{v}</td></tr>' for k , v in self . __dict__ . items ( ) : rows += s . format ( k = k , v = v ) html = '<table>{}</table>' . format ( rows ) return html
Jupyter Notebook magic repr function.
Jupyter Notebook magic repr function .