code: def display(self) -> tp.Any:
      if not _StreamlitHelpers.is_running_within_streamlit():
          if _is_running_ipython():
              raise RuntimeError(
                  r"""`experiment.display_st` can only be called in a streamlit script.
  It appears that you are trying to create a HiPlot visualization in ipython: you should use `display` instead of `display_st`"""
              )
          raise RuntimeError(
              r"""`experiment.display_st` can only be called in a streamlit script.
  To render an experiment to HTML, use `experiment.to_html(file_name)` or `html_page = experiment.to_html()`"""
          )
  
      component = _StreamlitHelpers.create_component()
  
      js_ret = component(experiment=self._exp_json, ret=self.js_ret_spec, key=self._key)  # type: ignore
  
      if js_ret is None:
          js_ret = self._js_default_ret
      assert len(self._js_default_ret) == len(
          js_ret
      ), f"JS returned {len(js_ret)} fields, expected {len(self._js_default_ret)} (ret={self._ret})"
  
      for idx in range(len(self.js_ret_spec)):
          if js_ret[idx] is not None:
              continue
          # Use default value
          js_ret = self._js_default_ret[idx]
  
      if not js_ret:
          return None
      if isinstance(self._ret, str):
          return js_ret[0]
      return js_ret
  
file_path: hiplot/hiplot/streamlit_helpers.py
imports: import typing
  import json
  import uuid
  import warnings
  from pathlib import Path
  from .experiment import Experiment, _is_running_ipython
label_desc: Use image node_id 5 for calling the ExperimentStreamlitComponent obj's underlying member method code with example usage: obj.display() and returns: js_ret, None, js_ret