# Paraview in PowerShell/Pycharm

**URL:** https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340
**Category:** ParaView Support
**Tags:** python
**Created:** [November 5, 2021, 6:52pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340 "2021-11-05T18:52:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![joaocqmiranda](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joaocqmiranda/32/6641_2.png) [@joaocqmiranda](https://discourse.paraview.org/u/joaocqmiranda)
#### Post date: [November 5, 2021, 6:52pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340/1 "2021-11-05T18:52:06Z")

</div>

Paraview 5.10.0-RC1  
I am trying to Play an animation.  
Tried to add a botton with tkinter to Play it, but the button doesn’t even shows. And the animation went “no response”

```auto

top = tkinter.Tk()
B = tkinter.Button(top, text ="Hello", command = scene.Play())
B.pack()
top.mainloop()

Interact()

```

Right now i have this:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/de1b92bfe525c88729a51a4e2c4221013dd77323.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 8, 2021, 5:43pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340/2 "2021-11-08T17:43:02Z")

</div>

I do not see any code to play the animation here

---

<div class="post-metadata">

### Author: ![joaocqmiranda](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joaocqmiranda/32/6641_2.png) [@joaocqmiranda](https://discourse.paraview.org/u/joaocqmiranda)
#### Post date: [November 8, 2021, 5:53pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340/3 "2021-11-08T17:53:23Z")

</div>

I already add tried with this code

```auto
scene.Play()
Interact()

```

and

```auto
def donothing():
   scene.Play()
top = tkinter.Tk()
B = tkinter.Button(top, text ="Play", command = donothing)
B.pack()
top.mainloop()
Interact()

```

In the first code. The animation starts and when i try to select a window the program goes “No response”.  
And with tkinter goes rigth to “no response”

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 8, 2021, 6:49pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340/4 "2021-11-08T18:49:32Z")

</div>

What if you use AnimateReader from simple.py ?

---

<div class="post-metadata">

### Author: ![joaocqmiranda](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joaocqmiranda/32/6641_2.png) [@joaocqmiranda](https://discourse.paraview.org/u/joaocqmiranda)
#### Post date: [November 8, 2021, 7:49pm UTC](https://discourse.paraview.org/t/paraview-in-powershell-pycharm/8340/5 "2021-11-08T19:49:53Z")

</div>

Change Interact to AnimateRender? For me has the same behavior as Interact

```auto
scene.Play()
#Interact()
AnimateRender()

```

If I change scene.Play() to AnimateRender The program starts then automaticly shutdown

```auto
#scene.Play()
AnimateRender()
Interact()

```
