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: Save the plot to a temporary HTML file and open it in a browser.
  
  Parameters
  ----------
  file_name : :obj:`str` or ``None``, default=None
      HTML file to use as a temporary file.
  
  temp_file_lifetime : :obj:`float`, default=30
  
      .. deprecated:: 0.11
  
          The parameter is kept for backward compatibility and will be
          removed in a future version. It has no effect.
docstr_tok: ["Save","the","plot","to","a","temporary","HTML","file","and","open","it","in","a","browser",".","Parameters","--","--","--","--","--","file_name",":",":","obj",":","`","str","`","or","``","None","``",",","default=None","HTML","file","to","use","as","a","temporary","file",".","temp_file_lifetime",":",":","obj",":","`","float","`",",","default=30","..","deprecated",":",":","0.11","The","parameter","is","kept","for","backward","compatibility","and","will","be","removed","in","a","future","version",".","It","has","no","effect","."]
code: def open_in_browser(
      self, file_name=None, temp_file_lifetime="deprecated"
  ):
      """Save the plot to a temporary HTML file and open it in a browser.
  
      Parameters
      ----------
      file_name : :obj:`str` or ``None``, default=None
          HTML file to use as a temporary file.
  
      temp_file_lifetime : :obj:`float`, default=30
  
          .. deprecated:: 0.11
  
              The parameter is kept for backward compatibility and will be
              removed in a future version. It has no effect.
      """
      if file_name is None:
          _open_in_browser(self.get_standalone().encode("utf-8"))
      else:
          self.save_as_html(file_name)
          webbrowser.open(f"file://{file_name}")
  
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 10 for calling the HTMLDocument obj's underlying member method code with example usage: obj.open_in_browser(file_name, temp_file_lifetime) without return types