class_docstr: Embeds a plot in a web page.
  
  If you are running a Jupyter notebook, the plot will be displayed
  inline if this object is the output of a cell.
  Otherwise, use ``open_in_browser()`` to open it in a web browser (or
  ``save_as_html("filename.html")`` to save it as an html file).
  
  Use ``str(document)`` or ``document.html`` to get the content of the
  web page, and ``document.get_iframe()`` to have it wrapped in an iframe.
docstr: Get the document wrapped in an inline frame.
  
  For inserting in another HTML page of for display in a Jupyter
  notebook.
  
  Parameters
  ----------
  width : :obj:`int` or ``None``, default=None
      Width of the inline frame.
  
  height : :obj:`int` or ``None``, default=None
      Height of the inline frame.
  
  Returns
  -------
  wrapped : :obj:`str`
      Raw HTML code for the inline frame.
docstr_tok: ["Get","the","document","wrapped","in","an","inline","frame",".","For","inserting","in","another","HTML","page","of","for","display","in","a","Jupyter","notebook",".","Parameters","--","--","--","--","--","width",":",":","obj",":","`","int","`","or","``","None","``",",","default=None","Width","of","the","inline","frame",".","height",":",":","obj",":","`","int","`","or","``","None","``",",","default=None","Height","of","the","inline","frame",".","Returns","--","--","--","-","wrapped",":",":","obj",":","`","str","`","Raw","HTML","code","for","the","inline","frame","."]
code: def get_iframe(self, width=None, height=None):
      """Get the document wrapped in an inline frame.
  
      For inserting in another HTML page of for display in a Jupyter
      notebook.
  
      Parameters
      ----------
      width : :obj:`int` or ``None``, default=None
          Width of the inline frame.
  
      height : :obj:`int` or ``None``, default=None
          Height of the inline frame.
  
      Returns
      -------
      wrapped : :obj:`str`
          Raw HTML code for the inline frame.
  
      """
      if width is None:
          width = self.width
      if height is None:
          height = self.height
      escaped = escape(self.html, quote=True)
      wrapped = (
          f'<iframe srcdoc="{escaped}" '
          f'width="{width}" height="{height}" '
          'frameBorder="0"></iframe>'
      )
      return wrapped
  
imports: import warnings
  import weakref
  import webbrowser
  from html import escape
  from http import HTTPStatus
  from http.server import BaseHTTPRequestHandler
  from queue import Empty, Queue
  from socketserver import TCPServer
  from threading import Thread
  from nilearn._utils import remove_parameters
label_desc: Use image node_id 4 for calling the HTMLDocument obj's underlying member method code with example usage: obj.get_iframe(width, height) and returns: wrapped