Welcome to the community!
Since you are using VTK, you might be ok by using trame-vtklocal with just 2 lines change.
Basically replace trame.widgets.vtk.VtkLocalView
by trame.widgets.vtklocal.LocalView
.
You will need vtk 9.4+ and trame-vtklocal
pip install "vtk>=9.4.1" trame-vtklocal
You can find a usage example here.