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: Adds a collapsible details section to Htmlbook.
docstr_tok: ["Adds","a","collapsible","details","section","to","Htmlbook","."]
code: def add_details(self, summary, details):
      """Adds a collapsible details section to Htmlbook."""
      with self.tag("details"):
          self.line("summary", summary)
          self.line("pre", details)
  
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 4 for calling the Htmlbook obj's underlying member method code with example usage: obj.add_details(summary, details) without return types