class_docstr: Object that can be rendered by HiPlot. It essential contains a list of metrics, but also some options on how to render it.
  
  See :meth:`Experiment.display` to display an :class:`Experiment` in an ipython notebook.
  
  :ivar datapoints: All the measurements we have. One datapoint corresponds to one line in the parallel plot and to one line in the table.
  :ivar parameters_definition: Characteristics of the columns (ordering, type, etc...)
  :ivar colormap: Colormap to use
  :ivar colorby: Default column to color by
  :ivar weightcolumn: If rows have different weights, use this column as the weight (default to 1 if not specified)
  :ivar enabledDisplays: Ordered displays to enable (by default all are enabled)
  
  :Example:
  
  .. code-block:: python
  
      import hiplot as hip
      data = [{'param': 1, 'loss': 10, 'hidden_field': 'value1', 'c': 'red'},
          {'param': 2, 'loss': 5, 'hidden_field': 'value2', 'c': 'black'}]
      exp = hip.Experiment.from_iterable(data)
docstr: Returns the content of a standalone .html file that displays this experiment
  without any dependency to HiPlot server or static files.
  
  :param file: Path/handle to a file to write (optional)
  :returns: A standalone HTML code to display this Experiment.
docstr_tok: ["Returns","the","content","of","a","standalone",".html","file","that","displays","this","experiment","without","any","dependency","to","HiPlot","server","or","static","files",".",":","param","file",":","Path\/handle","to","a","file","to","write","(","optional",")",":","returns",":","A","standalone","HTML","code","to","display","this","Experiment","."]
code: def to_html(
      self,
      file: tp.Optional[tp.Union[Path, str, TextWriterIO]] = None,
      **kwargs: tp.Any,
  ) -> str:
      """
      Returns the content of a standalone .html file that displays this experiment
      without any dependency to HiPlot server or static files.
  
      :param file: Path/handle to a file to write (optional)
      :returns: A standalone HTML code to display this Experiment.
      """
      from .render import make_experiment_standalone_page, html_inlinize
  
      self.validate()
      html = make_experiment_standalone_page(
          options={**kwargs, "experiment": self._asdict()}
      )
      html = html_inlinize(html)
      if file is not None:
          if isinstance(file, (Path, str)):
              Path(file).write_text(html, encoding="utf-8")
          else:
              file.write(html)
      return html
  
imports: import csv
  import uuid
  import json
  import codecs
  import warnings
  from abc import ABCMeta, abstractmethod
  from enum import Enum
  from collections import defaultdict
  from pathlib import Path
  import typing
label_desc: Use image node_id 9 for calling the Experiment obj's underlying member method code with example usage: obj.to_html(file) and returns: html