class_docstr: An object to generate an HTML table from a SQLite result
class_docstr_tok: ["An","object","to","generate","an","HTML","table","from","a","SQLite","result"]
code: def _repr_html_(self):
      return Template(
          """
  <div>
  <table>
    <thead>
    <tr>{% for name in columns %}<th>{{name}}</th>{% endfor %}</tr>
    </thead>
    <tbody>
    {% for row in rows %}
    <tr>
      {%- for field in row -%}
          {%- if is_str(field) and "<img src=" in field -%}
          <td>{{ "[Plot]" if not render_plots else field }}</td>
          {%- elif is_float(field) -%}
          <td>{{ "%.6f"| format(field) }}</td>
          {%- elif is_plot(field) -%}
          <td>{{ "[Plot]" if not render_plots else unserialize_plot(field) }}</td>
          {%- else -%}
          <td>{{field}}</td>
          {%- endif -%}
      {%- endfor -%}
    </tr>
    {% endfor %}
    </tbody>
  </table>
  </div>
  """
      ).render(
          columns=self.columns,
          rows=self.rows,
          render_plots=self.render_plots,
          is_str=is_str,
          is_float=is_float,
          is_plot=is_plot,
          unserialize_plot=unserialize_plot,
      )
  
imports: from collections.abc import Mapping
  from uuid import uuid4
  import sqlite3
  import json
  import importlib
  import pandas
  from jinja2 import Template
  from sklearn_evaluation.table import Table
  from sklearn_evaluation.report.serialize import try_serialize_figures, figure2html
  from sklearn_evaluation.telemetry import SKLearnEvaluationLogger
  from sklearn_evaluation.nb.NotebookCollection import add_compare_tab, tabs_html_from_content, HTMLMapping
  from sklearn_evaluation import plot
label_desc: Use image node_id 2 for calling the Results obj's underlying member method code with example usage: obj._repr_html_() and returns: Template