0

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.

1 Answer 1

3

Just use the Interact() method.

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

use the q key to stop the interaction.

Sign up to request clarification or add additional context in comments.

8 Comments

I could not reply over there because of the maximum number of replies a new user can create on their first day :) but thanks. this is an awesome solution. now it is completely responsive except when trying to close the window. Is there a python command to stop rendering and close the VTK window from within Python?
yes, the command is q key, while the VTK window has the focus. Most people using pvpython are actually generating screenshots and do not interact at all.
q does not close the window but only stop the interaction. Allowing you to do other stuff in the command.
Not that I could think of no. Sure, do not hesitate to tag me.
You can use Disconnect() to close all windows and reset pvpython
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.