Skip to content
Discussion options

You must be logged in to vote

Hi,
I am not sure why you are getting this error with trame-vtk vtkLocalView, but personally I'm not recommending using trame-vtk with the vtkLocalView. I personally find than trame-vtklocal works way better (it still have some problems though) that trame-vtk local rendering, that is a personal opinion though.
I see you are also import trame-vtklocal - I can help you for this one:
you have to import the widget this way:

from trame.widgets import  vtklocal

and in your constructor call

vtklocal.initialize(self.server)

and then use this widget to render your VTK render window:

with vtklocal.LocalView(self.window) as view:

Also make sure you uncomment those lines:

self.interactor = vtk.vtkRen…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SebastienRietteMTO
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants