def to_html(self, max_rows=None):
n = len(self.data)<EOL>div_id = _get_divid(self)<EOL>out = r'''<STR_LIT>'''.format(div_id, self.namespace, n)<EOL>out += r'''<STR_LIT>'''.format(div_id)<EOL>out += r'''<STR_LIT>'''.format(self.annotation_metadata._repr_html_())<EOL>out += r'''<STR_LIT>'''.format(self.sandbox._repr_html_())<EOL>out += r'''<STR_LIT>'''.format(self.namespace, n)<EOL>out += r'''<STR_LIT>'''<EOL>if max_rows is None or n <= max_rows:<EOL><INDENT>out += self._fmt_rows(<NUM_LIT:0>, n)<EOL><DEDENT>else:<EOL><INDENT>out += self._fmt_rows(<NUM_LIT:0>, max_rows//<NUM_LIT:2>)<EOL>out += r'''<STR_LIT>'''<EOL>out += self._fmt_rows(n-max_rows//<NUM_LIT:2>, n)<EOL><DEDENT>out += r'''<STR_LIT>'''<EOL>out += r'''<STR_LIT>'''<EOL>out += r'''<STR_LIT>'''<EOL>return out<EOL>
Render this annotation list in HTML

        Returns
        -------
        rendered : str
            An HTML table containing this annotation's data.