class_docstr: Display API for the check/suite result objects.
class_docstr_tok: ["Display","API","for","the","check\/suite","result","objects","."]
docstr: Display result in an iframe.
  
  Parameters
  ----------
  as_widget : bool, default True
      whether to display result with help of ipywidgets or not
  unique_id : Optional[str], default None
      unique identifier of the result output
  connected: bool , default False
      indicates whether internet connection is available or not,
      if 'True' then CDN urls will be used to load javascript otherwise
      javascript libraries will be injected directly into HTML output.
      Set to 'False' to make results viewing possible when the internet
      connection is not available.
  **kwargs :
      other key-value arguments will be passed to the `Serializer.serialize`
      method
docstr_tok: ["Display","result","in","an","iframe",".","Parameters","--","--","--","--","--","as_widget",":","bool",",","default","True","whether","to","display","result","with","help","of","ipywidgets","or","not","unique_id",":","Optional","[","str","]",",","default","None","unique","identifier","of","the","result","output","connected",":","bool",",","default","False","indicates","whether","internet","connection","is","available","or","not",",","if","'True","'","then","CDN","urls","will","be","used","to","load","javascript","otherwise","javascript","libraries","will","be","injected","directly","into","HTML","output",".","Set","to","'False","'","to","make","results","viewing","possible","when","the","internet","connection","is","not","available",".","*","*","kwargs",":","other","key-value","arguments","will","be","passed","to","the","`","Serializer.serialize","`","method"]
code: def show_in_iframe(
      self,
      as_widget: bool = True,
      unique_id: t.Optional[str] = None,
      connected: bool = False,
      **kwargs,
  ):
      """Display result in an iframe.
  
      Parameters
      ----------
      as_widget : bool, default True
          whether to display result with help of ipywidgets or not
      unique_id : Optional[str], default None
          unique identifier of the result output
      connected: bool , default False
          indicates whether internet connection is available or not,
          if 'True' then CDN urls will be used to load javascript otherwise
          javascript libraries will be injected directly into HTML output.
          Set to 'False' to make results viewing possible when the internet
          connection is not available.
      **kwargs :
          other key-value arguments will be passed to the `Serializer.serialize`
          method
      """
      output_id = unique_id or get_random_string(n=25)
  
      if is_colab_env() and as_widget is True:
          widget = self.widget_serializer.serialize(**kwargs)
          content = widget_to_html_string(
              widget, title=get_result_name(self), connected=True
          )
          display_html(content, raw=True)
      elif is_colab_env() and as_widget is False:
          display(*self.ipython_serializer.serialize(**kwargs))
      elif as_widget is True:
          widget = self.widget_serializer.serialize(
              output_id=output_id,
              is_for_iframe_with_srcdoc=True,
              **kwargs,
          )
          content = widget_to_html_string(
              widget, title=get_result_name(self), connected=connected
          )
          display_html(iframe(srcdoc=content), raw=True)
      else:
          display_html(
              iframe(
                  srcdoc=self.html_serializer.serialize(
                      output_id=output_id,
                      full_html=True,
                      include_requirejs=True,
                      include_plotlyjs=True,
                      is_for_iframe_with_srcdoc=True,
                      connected=connected,
                      **kwargs,
                  )
              ),
              raw=True,
          )
  
imports: import abc
  import html
  import io
  import pathlib
  import sys
  import typing
  from multiprocessing import get_context, process
  from tempfile import NamedTemporaryFile
  from IPython.core.display import display, display_html
  from ipywidgets import Widget
  from deepchecks.core.serialization.abc import HTMLFormatter, HtmlSerializer, IPythonSerializer, WidgetSerializer
  from deepchecks.utils.ipython import is_colab_env, is_databricks_env, is_kaggle_env, is_sagemaker_env, is_sphinx
  from deepchecks.utils.logger import get_logger
  from deepchecks.utils.strings import create_new_file_name, get_random_string, widget_to_html, widget_to_html_string
label_desc: Use image node_id 5 for calling the DisplayableResult obj's underlying member method code with example usage: obj.show_in_iframe(as_widget, unique_id, connected) without return types