code: def scene_to_notebook(scene, height=500, **kwargs):
      
      # keep as soft dependency
      from IPython import display
  
      # convert scene to a full HTML page
      as_html = scene_to_html(scene=scene)
  
      # escape the quotes in the HTML
      srcdoc = as_html.replace('"', '&quot;')
      # embed this puppy as the srcdoc attr of an IFframe
      # I tried this a dozen ways and this is the only one that works
      # display.IFrame/display.Javascript really, really don't work
      embedded = display.HTML(
          '<iframe srcdoc="{srcdoc}" '
          'width="100%" height="{height}px" '
          'style="border:none;"></iframe>'.format(
              srcdoc=srcdoc,
              height=height))
      return embedded
docs: Convert a scene to HTML containing embedded geometry
      and a three.js viewer that will display nicely in
      an IPython/Jupyter notebook.
  
      Parameters
      -------------
      scene : trimesh.Scene
        Source geometry
  
      Returns
      -------------
      html : IPython.display.HTML
        Object containing rendered scene