# VTK Python rendering window not responding with basic scene

**URL:** https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019
**Category:** Support
**Created:** [October 29, 2021, 3:28pm UTC](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019 "2021-10-29T15:28:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ronzim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ronzim/32/3153_2.png) [@ronzim](https://discourse.vtk.org/u/ronzim)
#### Post date: [October 29, 2021, 3:28pm UTC](https://discourse.vtk.org/t/vtk-python-rendering-window-not-responding-with-basic-scene/7019/1 "2021-10-29T15:28:36Z")

</div>

Hello there,

I’ve implemented a basic scene using vtkpython. When I call vtkRenderWindow.Render() the window appears correctly, but freezes at first interaction (not responding). My code:

```auto
import vtk
import time

cone = vtk.vtkConeSource()

mapper = vtk.vtkPolyDataMapper()
mapper.SetInputConnection(cone.GetOutputPort())

actor = vtk.vtkActor()
actor.SetMapper(mapper)

renderer = vtk.vtkRenderer()
renderer.AddActor(actor)
renderer.ResetCamera()
camera = renderer.GetActiveCamera()

window = vtk.vtkRenderWindow()
window.AddRenderer(renderer)

azimuth = 0
while 1:
    if azimuth >= 360:
        azimuth = 0
    azimuth += 0.1
    camera.Azimuth(azimuth)
    window.Render()

time.sleep(0.1)

```

The problem does not appear if I use the vtkWindowInteractor rendering loop (vtkWindowInteractor.Start() ).

My setup:  
Windows 10  
vtk 9.1.0-rc2  
python 3.9.1

Thanks in advance for any hint that puts me in the right direction.
