# Running Python without opening shell in Paraview GUI from Bash

**URL:** https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363
**Category:** ParaView Support
**Created:** [August 6, 2019, 6:09am UTC](https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363 "2019-08-06T06:09:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tejas.canchi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/aeb1de/32.png) [@tejas.canchi](https://discourse.paraview.org/u/tejas.canchi)
#### Post date: [August 6, 2019, 6:09am UTC](https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363/1 "2019-08-06T06:09:59Z")

</div>

Hello

I want to run a bash file in which I open up Paraview and run a series of filters from the script. How do I do that?

Thanks

Tejas

---

<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: [August 6, 2019, 7:33am UTC](https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363/2 "2019-08-06T07:33:43Z")

</div>

This is a standard usage for pvpython.  
[https://www.paraview.org/Wiki/ParaView/Python\_Scripting](https://www.paraview.org/Wiki/ParaView/Python_Scripting)  
[https://www.paraview.org/python/](https://www.paraview.org/python/)  
[https://kitware.github.io/paraview-docs/latest/python/](https://kitware.github.io/paraview-docs/latest/python/)

---

<div class="post-metadata">

### Author: ![tejas.canchi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/aeb1de/32.png) [@tejas.canchi](https://discourse.paraview.org/u/tejas.canchi)
#### Post date: [August 12, 2019, 12:43am UTC](https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363/3 "2019-08-12T00:43:42Z")

</div>

Thanks. I was able to run pvpython on my local machine. I want to be able to run paraview on another machine through ssh. I used ssh -X computer@ssss.com.ss but it is failing. Could you please give me any input on this problem? Also, I am using a trace to setup automated processing. I want to save a state of the stuff I am doing. But it does not record on the trace. Is there another function in order to record the save state function?

Thanks

---

<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: [August 12, 2019, 8:42am UTC](https://discourse.paraview.org/t/running-python-without-opening-shell-in-paraview-gui-from-bash/2363/4 "2019-08-12T08:42:37Z")

</div>

**Do not use -X or -Y with ParaView**  
**Do not use -X or -Y with pvpython**  
**Do not use -X or -Y with pvbatch**

It is not supported and never will be.

You have to use the client/server mode of ParaView, take a look here :  
[https://www.paraview.org/Wiki/Setting\_up\_a\_ParaView\_Server](https://www.paraview.org/Wiki/Setting_up_a_ParaView_Server)
