I took a look at the repository Kitware/trame and its not much that I can infer from that. As they support Jupyter environments you could try to see if they can be used via Panels built in support for Ipywidgets?
@Marc hanks for your comment, Trame supports the Jupyter backend so if we can use Jupyter results we can fully support vtk results. I don’t understand how ipywidget can use jupyter results so I will study it.
Thank you for your comment. PyVista’s show method provides an ipywidget that can be used with Jupyter (see this tweet). I am not sure how this should be provided on the Panel side, because I am new to Panel. In any case, vtk.js is not being developed diligently and will need to be migrated to trame in the future. I would really appreciate ideas on how to incorporate the sample scripts into the Panel design.
Sorry to get ahead of myself, but I created an issue on this.
Thanks for your comments, Trame is a great project. For the record, I would like to add my understanding.
As you mentioned, local rendering relies on vtk.js, so we are not able to reproduce VTK perfectly. Switching to remote rendering can be done by pressing the blue highlighted button in the image. This is derived from PyVista’s Jupyter support (derived from Trame’s Jupyter support maybe). In this mode, VTK is fully reproduced, but operations such as moving objects require resources.