Search code examples
pythonwindowsvtkparaviewqvtkwidget

ParaView Python script causes non responding Visualization Toolkit - Win32OpenGL on Windows


As I have reported here when I try to render the cone example by:

from paraview.simple import *
cone = Cone()
Show(cone)
Render()

I get a non responding window:

enter image description here

enter image description here

My version of Python is:

Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32

and I’m on Windows 10 64-bit. I would appreciate if you could help me know what is the problem and how I can solve it.


Solution

  • Just use the Interact() method.

    from paraview.simple import *
    cone = Cone()
    Show(cone)
    Interact()
    

    use the q key to stop the interaction.