class_docstr: Representation layer of the report.
  
  Stability report module wraps the representation functionality of the report
  after running the pipeline and generating the report. Report can be represented
  as a HTML string, HTML file or Jupyter notebook's cell output.
class_docstr_tok: ["Representation","layer","of","the","report",".","Stability","report","module","wraps","the","representation","functionality","of","the","report","after","running","the","pipeline","and","generating","the","report",".","Report","can","be","represented","as","a","HTML","string",",","HTML","file","or","Jupyter","notebook","'s","cell","output","."]
docstr: Store HTML report in the local file system.
  
  :param str filename: filename for the HTML report
docstr_tok: ["Store","HTML","report","in","the","local","file","system",".",":","param","str","filename",":","filename","for","the","HTML","report"]
code: def to_file(self, filename) -> None:
      """Store HTML report in the local file system.
  
      :param str filename: filename for the HTML report
      """
      with open(filename, "w+") as file:
          file.write(self.to_html())
  
file_path: popmon/popmon/pipeline/report.py
imports: from __future__ import annotations
  import logging
  from histogrammar.dfinterface.make_histograms import get_bin_specs, make_histograms
  from popmon.config import Settings
  from popmon.pipeline.dataset_splitter import split_dataset
  from popmon.pipeline.report_pipelines import ReportPipe, get_report_pipeline_class
  from popmon.resources import templates_env
label_desc: Use image node_id 6 for calling the StabilityReport obj's underlying member method code with example usage: obj.to_file(filename) without return types