class_docstr: An Htmlbook is used to generate an html page from text and matplotlib figures.
class_docstr_tok: ["An","Htmlbook","is","used","to","generate","an","html","page","from","text","and","matplotlib","figures","."]
docstr: Saves Htmlbook to a file (typically should have .html extension).
docstr_tok: ["Saves","Htmlbook","to","a","file","(","typically","should","have",".html","extension",")","."]
code: def to_file(self, out_file):
      """Saves Htmlbook to a file (typically should have .html extension)."""
      with open(out_file, "w") as file:
          file.write(self.to_text())
  
file_path: pycls/pycls/sweep/htmlbook.py
imports: import base64
  from io import BytesIO
  import matplotlib.pyplot
  from yattag import Doc, indent
label_desc: Use image node_id 6 for calling the Htmlbook obj's underlying member method code with example usage: obj.to_file(out_file) without return types