<div>I am trying to draw 3D graphics using the pvpython shell. The following file is named sphere.py</div>
<div> </div>
<div>-----------------------</div>
<div>import os</div>
<div>import paraview</div>
<div>from paraview.simple import *</div>
<div>from paraview.servermanager import *</div>
<div>Connect()</div>
<div>sph=Sphere()</div>
<div>Show(sph)</div>
<div>Render()</div>
<div>-------------------</div>
<div> </div>
<div>I execute the following command from a DOS cmd window:</div>
<div> </div>
<div>pvpython sphere.py</div>
<div> </div>
<div>These commands appear to work and a window is created showing the sphere but it immediately goes away. Do I need some type of wait command in the script? When I execute these commands interactively in the pvpython window the window locks up. When I execute them, minus the Connect() in the Paraview GUI provided Python window they work fine. </div>

<div> </div>
<div>I want a separate graphics window with no GUI shown.</div>
<div> </div>
<div>What am I missing here? </div>
<div> </div>