vtkGlyph3DMapper on Panel + JupyterLab gives javascript error, blank screen

I’m trying to use vtkGlyph3DMapper, however the script below fails on Jupyter Lab + Panel. Is this a problem with the script or with the libraries? Any pointers would be helpful.

import vtk
import panel as pn
pn.extension('vtk')

coneSource1 = vtk.vtkConeSource();
mapper = vtk.vtkGlyph3DMapper();
mapper.SetInputConnection(coneSource1.GetOutputPort());
coneSource = vtk.vtkConeSource();
mapper.SetSourceConnection(coneSource.GetOutputPort())
mapper.Update()
actor = vtk.vtkActor();
actor.SetMapper(mapper);


ren = vtk.vtkRenderer()
ren.AddActor(actor)
ren.ResetCamera()


win = vtk.vtkRenderWindow()
win.AddRenderer(ren)


geom_pane = pn.pane.VTK(win, width=500, height=500)
geom_pane

Gives this issue on the javascript console:

Uncaught (in promise) TypeError: t.oglmapper is undefined
    traverseOpaquePass index.js:63
    traverse index.js:27
    traverse index.js:35
    traverse index.js:75
    traverseAllPasses index.js:1066

This issue should be reported on the panel side. I believe the vtkGlyph3DMapper is not properly handled in their converter to vtk.js. But such scenario should work.

Thanks for the fast response. I just opened an issue there: https://github.com/holoviz/panel/issues/2001