class_docstr: Extension of the JupyterDash class to support the custom inline output for
  ``FigureResampler`` figures.
  
  Specifically we embed a div in the notebook to display the figure inline.
  
   - In this div the figure is shown as an iframe when the server (of the dash app)
     is alive.
   - In this div the figure is shown as an image when the server (of the dash app)
     is dead.
  
  As the HTML & javascript code is embedded in the notebook output, which is loaded
  each time you open the notebook, the figure is always displayed (either as iframe
  or just an image).
  Hence, this extension enables to maintain always an output in the notebook.
  
  .. Note::
      This subclass is only used when the mode is set to ``"inline_persistent"`` in
      the :func:`FigureResampler.show_dash <plotly_resampler.figure_resampler.FigureResampler.show_dash>`
      method. However, the mode should be passed as ``"inline"`` since this subclass
      overwrites the inline behavior.
  
  .. Note::
      This subclass utilizes the optional ``flask_cors`` package to detect whether the
      server is alive or not.
docstr: Override the display method to retain some output when displaying inline
  in jupyter.
docstr_tok: ["Override","the","display","method","to","retain","some","output","when","displaying","inline","in","jupyter","."]
code: def _display_in_jupyter(
      self, dashboard_url, port, mode, width, height
  ):
      """Override the display method to retain some output when displaying inline
      in jupyter.
      """
      if mode == "inline":
          self._display_inline_output(dashboard_url, width, height)
      else:
          super()._display_in_jupyter(
              dashboard_url, port, mode, width, height
          )
  
file_path: plotly-resampler/plotly_resampler/figure_resampler/jupyter_dash_persistent_inline_output.py
imports: import base64
  import contextlib
  import uuid
  import warnings
  from jupyter_dash import JupyterDash
label_desc: Use image node_id 3 for calling the JupyterDashPersistentInlineOutput obj's underlying member method code with example usage: obj._display_in_jupyter(dashboard_url, port, mode, width, height) without return types