class_docstr: Display API for the check/suite result objects.
class_docstr_tok: ["Display","API","for","the","check\/suite","result","objects","."]
docstr: Display result.
  
  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
  **kwargs :
      other key-value arguments will be passed to the `Serializer.serialize`
      method
  
  Returns
  -------
  Optional[HTMLFormatter] :
      when used by sphinx-gallery
docstr_tok: ["Display","result",".","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","*","*","kwargs",":","other","key-value","arguments","will","be","passed","to","the","`","Serializer.serialize","`","method","Returns","--","--","--","-","Optional","[","HTMLFormatter","]",":","when","used","by","sphinx-gallery"]
code: def show(
      self,
      as_widget: bool = True,
      unique_id: t.Optional[str] = None,
      **kwargs,
  ) -> t.Optional[HTMLFormatter]:
      """Display result.
  
      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
      **kwargs :
          other key-value arguments will be passed to the `Serializer.serialize`
          method
  
      Returns
      -------
      Optional[HTMLFormatter] :
          when used by sphinx-gallery
      """
      if is_sphinx():
          # TODO: why we need this? add comments
          html = widget_to_html_string(  # pylint: disable=redefined-outer-name
              self.widget_serializer.serialize(
                  output_id=unique_id, **kwargs
              ),
              title=get_result_name(self),
              requirejs=False,
              connected=True,
              full_html=False,
          )
  
          class TempSphinx:
              def _repr_html_(self):
                  return html
  
          return TempSphinx()
  
      if is_kaggle_env() or is_databricks_env() or is_sagemaker_env():
          self.show_in_iframe(
              as_widget=as_widget, unique_id=unique_id, **kwargs
          )
      elif 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)
          )
          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:
          display_html(
              self.widget_serializer.serialize(
                  output_id=unique_id, **kwargs
              )
          )
      else:
          display(
              *self.ipython_serializer.serialize(
                  output_id=unique_id, **kwargs
              )
          )
  
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 4 for calling the DisplayableResult obj's underlying member method code with example usage: obj.show(as_widget, unique_id) and returns: TempSphinx, html