class_docstr: Class which accepts html string and support displaying it in different environments.
class_docstr_tok: ["Class","which","accepts","html","string","and","support","displaying","it","in","different","environments","."]
docstr: Return IPython serializer.
docstr_tok: ["Return","IPython","serializer","."]
code: def ipython_serializer(self) -> IPythonSerializer[t.Any]:
      """Return IPython serializer."""
  
      class _IPythonSerializer(IPythonSerializer[t.Any]):
          def serialize(
              self, **kwargs
          ) -> t.Any:  # pylint: disable=unused-argument
              return HTML(self.value)
  
      return _IPythonSerializer(self.html)
  
file_path: deepchecks/deepchecks/core/serialization/html_display.py
imports: import io
  import typing
  from ipywidgets import HTML, VBox, Widget
  from deepchecks.core.display import DisplayableResult
  from deepchecks.core.serialization.abc import HtmlSerializer, IPythonSerializer, WidgetSerializer
  from deepchecks.core.serialization.common import normalize_widget_style
  from deepchecks.utils.strings import create_new_file_name
label_desc: Use image node_id 3 for calling the HtmlDisplayableResult obj's underlying member method code with example usage: obj.ipython_serializer() and returns: _IPythonSerializer, HTML