class_docstr: PyVista wrapping of trame ``VtkRemoteLocalView``.
  
  Dynamically switch between client and server rendering.
  
  Parameters
  ----------
  plotter : pyvista.Plotter
      The PyVista Plotter to display in the output view.
  
  interactive_ratio : int, optional
      Image size scale factor while interacting. Increasing this
      value will give higher resulotuion images during interaction
      events at the cost of performance. Use lower values (e.g.,
      ``0.5``) to increase performance while interacting.
      Defaults to 1. This is only valid in the ``'remote'`` mode.
  
  still_ratio : int, optional
      Image size scale factor while not interacting (still).
      Increasing this value will give higher resulotuion images
      when not interacting with the scene. Defaults to 1.
      This is only valid in the ``'remote'`` mode.
  
  namespace : str, optional
      The namespace for this view component. A default value is
      chosen based on the ``_id_name`` of the plotter.
  
  **kwargs : dict, optional
      Any additional keyword arguments to pass to
      ``trame.widgets.vtk.VtkRemoteLocalView``.
docstr: Create a trame remote/local view from a PyVista Plotter.
docstr_tok: ["Create","a","trame","remote\/local","view","from","a","PyVista","Plotter","."]
code: def __init__(
      self,
      plotter,
      interactive_ratio=None,
      still_ratio=None,
      namespace=None,
      **kwargs,
  ):  # numpydoc ignore=PR01,RT01
      """Create a trame remote/local view from a PyVista Plotter."""
      _BasePyVistaView.__init__(self, plotter)
      if namespace is None:
          namespace = f"{plotter._id_name}"
      if interactive_ratio is None:
          interactive_ratio = plotter._theme.trame.interactive_ratio
      if still_ratio is None:
          still_ratio = plotter._theme.trame.still_ratio
      VtkRemoteLocalView.__init__(
          self,
          self._plotter().render_window,
          interactive_ratio=interactive_ratio,
          still_ratio=still_ratio,
          __properties=[("still_ratio", "stillRatio")],
          ref=f"view_{plotter._id_name}",
          namespace=namespace,
          **kwargs,
      )
      # Track namespace for our use since trame attributes are name mangled
      self._namespace = namespace
  
      self._post_initialize()
  
imports: import io
  import weakref
  from trame.app import get_server
  from trame.widgets.vtk import VtkLocalView, VtkRemoteLocalView, VtkRemoteView
  from trame_vtk.tools.vtksz2html import write_html
label_desc: Use image node_id 1 to create a new PyVistaRemoteLocalView object from inherited base classes: VtkRemoteLocalView, _BasePyVistaView with example: obj = PyVistaRemoteLocalView(plotter, interactive_ratio, still_ratio, namespace)