code: def _setup_html_context(
      *,
      isolated_frame: bool = None,
      offline: bool,
      no_js: bool,
      show_status: bool,
  ) -> None:
      """
      Configures Lets-Plot HTML output.
  
      Parameters
      ----------
      isolated_frame : bool
          True - generate HTLM which can be used in `iframe` or in a standalone HTML document
          False - pre-load Lets-Plot JS library. Notebook cell output will only consist of HTML for the plot rendering.
          Default: None - auto-detect.
      offline : bool
          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.
          False - load Lets-Plot JS library from CDN.
      no_js : bool
          True - do not generate HTML+JS as an output - just static SVG image.
      show_status : bool
          Whether to show status of loading of the Lets-Plot JS library.
          Only applicable when the Lets-Plot JS library is preloaded.
  
      """
      global _default_mimetype
      if _default_mimetype == LETS_PLOT_JSON:
          # Plots will be rendered by Lets-Plot IntelliJ plugin.
          # No other contexts are needed.
          if show_status:
              print(
                  "Lets-Plot v{}: output mimetype {} configured by default. No need for HTML output.".format(
                      __version__, LETS_PLOT_JSON
                  )
              )
          return
  
      if no_js:
          ctx = StaticSvgImageContext()
      else:
          ctx = _create_html_frontend_context(
              isolated_frame, offline=offline
          )
  
      ctx.configure(verbose=show_status)
      _frontend_contexts[TEXT_HTML] = ctx
  
file_path: lets-plot/python-package/lets_plot/frontend_context/_configuration.py
imports: from typing import Dict, Any
  from ._frontend_ctx import FrontendContext
  from ._html_contexts import _create_html_frontend_context, _use_isolated_frame
  from ._json_contexts import _create_json_frontend_context, _is_Intellij_Python_Lets_Plot_Plugin
  from ._mime_types import TEXT_HTML, LETS_PLOT_JSON
  from ._static_svg_ctx import StaticSvgImageContext
  from .._version import __version__
  from ..plot.core import PlotSpec
  from ..plot.plot import GGBunch
  from ..plot.subplots import SupPlotsSpec
label_desc: Use image node_id 1 for calling a global function with example usage: _setup_html_context() without return types