Correct way to update a vtkImageData and refresh the render window (renderWindow.Render() not working)

Thank you for the suggestions David!

I tried adding both of the following before self.renderWindow.Render() in the .update(values) method:

self.mesh.DataHasBeenGenerated()
self.meshPolyData.Modified()

But that did not work.
I’ll try adding a “print(timestamps)” to check what you’ve said.

It’s difficult to debug this in debug mode in PyCharm, because when the execution is paused in a breakpoint, the window gets updated as is expected.