code: def _create_html_frontend_context(
      isolated_frame: bool = None, offline: bool = None
  ) -> FrontendContext:
      """
      Configures Lets-Plot HTML output.
  
      Parameters
      ----------
      isolated_frame : bool, optional, default None - auto-detect
          If `True`, generate HTLM which can be used in `iframe` or in a standalone HTML document
          If `False`, pre-load Lets-Plot JS library. Notebook cell output will only consist of HTML for the plot rendering.
  
      offline : bool, optional, default None - evaluated to 'connected' mode in production environment.
          If `True`, full Lets-Plot JS bundle will be added to the notebook. Use this option if you would like
          to work with notebook without the Internet connection.
          If `False`, load Lets-Plot JS library from CDN.
      """
      if isolated_frame is None:
          isolated_frame = _use_isolated_frame()
  
      if isolated_frame:
          return StaticHtmlPageContext(offline)
      else:
          return JupyterNotebookContext(offline)
  
file_path: lets-plot/python-package/lets_plot/frontend_context/_html_contexts.py
imports: import os
  from ._frontend_ctx import FrontendContext
  from ._jupyter_notebook_ctx import JupyterNotebookContext
  from ._static_html_page_ctx import StaticHtmlPageContext
  from .._global_settings import has_global_value, get_global_bool, HTML_ISOLATED_FRAME
label_desc: Use image node_id 1 for calling a global function with example usage: _create_html_frontend_context(isolated_frame, offline) and returns: StaticHtmlPageContext, JupyterNotebookContext