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 the widget representation of the result.
docstr_tok: ["Return","the","widget","representation","of","the","result","."]
code: def to_widget(self, **kwargs) -> Widget:
      """Return the widget representation of the result."""
      return self.widget_serializer.serialize(**kwargs)
  
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 5 for calling the HtmlDisplayableResult obj's underlying member method code with example usage: obj.to_widget() and returns: self