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: Return html representation of the plot.
  
  Used by the Jupyter notebook.
  
  Users normally won't call this method explicitly.
  
  See the jupyter documentation:
  https://ipython.readthedocs.io/en/stable/config/integrating.html
docstr_tok: ["Return","html","representation","of","the","plot",".","Used","by","the","Jupyter","notebook",".","Users","normally","wo","n't","call","this","method","explicitly",".","See","the","jupyter","documentation",":","https",":","\/\/ipython.readthedocs.io\/en\/stable\/config\/integrating.html"]
code: def _repr_html_(self):
      """Return html representation of the plot.
  
      Used by the Jupyter notebook.
  
      Users normally won't call this method explicitly.
  
      See the jupyter documentation:
      https://ipython.readthedocs.io/en/stable/config/integrating.html
      """
      return self.get_iframe()
  
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 6 for calling the HTMLDocument obj's underlying member method code with example usage: obj._repr_html_() and returns: self