class_docstr: Custom HTML iframe widget for embedding the trame viewer.
class_docstr_tok: ["Custom","HTML","iframe","widget","for","embedding","the","trame","viewer","."]
docstr: Initialize.
docstr_tok: ["Initialize","."]
code: def __init__(self, plotter, width, height, **kwargs):
      """Initialize."""
      if HTML is object:
          raise ImportError("Please install `ipywidgets`.")
      scene = plotter.export_html(filename=None)
      src = scene.getvalue().replace('"', "&quot;")
      # eventually we could maybe expose this, but for now make sure we're at least
      # consistent with matplotlib's color (light gray)
      border = "border: 1px solid rgb(221,221,221);"
      value = f'<iframe srcdoc="{src}" class="pyvista" style="width: {width}; height: {height}; {border}"></iframe>'
      super().__init__(value, **kwargs)
      self._src = src
  
imports: import asyncio
  import logging
  import os
  import warnings
  from trame.widgets import html, vtk, vuetify, vuetify3
  import pyvista
  from pyvista.trame.ui import UI_TITLE, get_viewer
  from pyvista.trame.views import CLOSED_PLOTTER_ERROR, get_server
label_desc: Use image node_id 1 to create a new EmbeddableWidget object from inherited base classes: HTML with example: obj = EmbeddableWidget(plotter, width, height)