docstr: Write a file and loads it to an iframe, if in a Jupyter environment;
  otherwise, write a file and optionally open it in a web browser
  
  Parameters
  ----------
  filename : str, default None
      Name of the file.
  open_browser : bool, default False
      Whether a browser window will open or not after write.
  notebook_display : bool, default None
      Display the HTML output in an iframe if True. Set to True automatically if rendering in Jupyter.
  iframe_width : str or int, default '100%'
      Width of Jupyter notebook iframe in pixels, if rendered in a Jupyter environment.
  iframe_height : int, default 500
      Height of Jupyter notebook iframe in pixels, if rendered in Jupyter or Colab.
  as_string : bool, default False
      Returns HTML as a string, if True and ``filename`` is None.
  css_background_color : str, default None
      Background color for visualization, specified as a string in any format accepted for CSS colors.
  
  Returns
  -------
  str
      Returns absolute path of the file
docstr_tok: ["Write","a","file","and","loads","it","to","an","iframe",",","if","in","a","Jupyter","environment",";","otherwise",",","write","a","file","and","optionally","open","it","in","a","web","browser","Parameters","--","--","--","--","--","filename",":","str",",","default","None","Name","of","the","file",".","open_browser",":","bool",",","default","False","Whether","a","browser","window","will","open","or","not","after","write",".","notebook_display",":","bool",",","default","None","Display","the","HTML","output","in","an","iframe","if","True",".","Set","to","True","automatically","if","rendering","in","Jupyter",".","iframe_width",":","str","or","int",",","default","'100","%","'","Width","of","Jupyter","notebook","iframe","in","pixels",",","if","rendered","in","a","Jupyter","environment",".","iframe_height",":","int",",","default","500","Height","of","Jupyter","notebook","iframe","in","pixels",",","if","rendered","in","Jupyter","or","Colab",".","as_string",":","bool",",","default","False","Returns","HTML","as","a","string",",","if","True","and","``","filename","``","is","None",".","css_background_color",":","str",",","default","None","Background","color","for","visualization",",","specified","as","a","string","in","any","format","accepted","for","CSS","colors",".","Returns","--","--","--","-","str","Returns","absolute","path","of","the","file"]
code: def to_html(
      self,
      filename=None,
      open_browser=False,
      notebook_display=None,
      iframe_width="100%",
      iframe_height=500,
      as_string=False,
      offline=False,
      **kwargs,
  ):
      """Write a file and loads it to an iframe, if in a Jupyter environment;
      otherwise, write a file and optionally open it in a web browser
  
      Parameters
      ----------
      filename : str, default None
          Name of the file.
      open_browser : bool, default False
          Whether a browser window will open or not after write.
      notebook_display : bool, default None
          Display the HTML output in an iframe if True. Set to True automatically if rendering in Jupyter.
      iframe_width : str or int, default '100%'
          Width of Jupyter notebook iframe in pixels, if rendered in a Jupyter environment.
      iframe_height : int, default 500
          Height of Jupyter notebook iframe in pixels, if rendered in Jupyter or Colab.
      as_string : bool, default False
          Returns HTML as a string, if True and ``filename`` is None.
      css_background_color : str, default None
          Background color for visualization, specified as a string in any format accepted for CSS colors.
  
      Returns
      -------
      str
          Returns absolute path of the file
      """
      deck_json = self.to_json()
      f = deck_to_html(
          deck_json,
          mapbox_key=self.mapbox_key,
          google_maps_key=self.google_maps_key,
          filename=filename,
          open_browser=open_browser,
          notebook_display=notebook_display,
          iframe_height=iframe_height,
          iframe_width=iframe_width,
          tooltip=self._tooltip,
          custom_libraries=pydeck_settings.custom_libraries,
          configuration=pydeck_settings.configuration,
          as_string=as_string,
          offline=offline,
          **kwargs,
      )
      return f
  
file_path: deck.gl/bindings/pydeck/pydeck/bindings/deck.py
imports: import os
  import sys
  from .json_tools import JSONMixin
  from .layer import Layer
  from ..io.html import deck_to_html
  from ..settings import settings
  from .view import View
  from .view_state import ViewState
  from .base_map_provider import BaseMapProvider
  from .map_styles import DARK, get_from_map_identifier
label_desc: Use image node_id 6 for calling the Deck obj's underlying member method code with example usage: obj.to_html(filename, open_browser, notebook_display, iframe_width, iframe_height, as_string, offline) and returns: f