# View interactivity in pvpython

**URL:** https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305
**Category:** Development
**Tags:** python
**Created:** [January 26, 2021, 6:20pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305 "2021-01-26T18:20:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hugo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hugo/32/7836_2.png) [@Hugo](https://discourse.paraview.org/u/Hugo)
#### Post date: [January 26, 2021, 6:20pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305/1 "2021-01-26T18:20:42Z")

</div>

Hello,  
I’m a huge fan of paraview (so many possibilities).  
I’ve developped a small user interface in python to simplify the use of paraview for my colleagues.  
It’s working pretty well but i still haven’t found out :

- how to select (points or cell) interactively through a view generated from python (without paraview Gui)?
- Is it possible to display the clipping widget in my python view (i dream about it) ?
- how to start a paraview instance and connect it to a pvserver from the command line (I haven’t found any help on paraview.exe command line arguments?

Any help would be appreciated.

Thank you

---

<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: [January 26, 2021, 6:32pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305/2 "2021-01-26T18:32:49Z")

</div>

> [@Hugo](#):
>
> - how to select (points or cell) interactively through a view generated from python (without paraview Gui)?

Not supported afaik.

> [@](#):
>
> - Is it possible to display the clipping widget in my python view (i dream about it) ?

I’m not sure that is supported. It should be imo.

> [@](#):
>
> - how to start a paraview instance and connect it to a pvserver from the command line (I haven’t found any help on paraview.exe command line arguments?

> <https://stackoverflow.com/questions/45236721/controlling-paraview-gui-from-python-idle>

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [January 26, 2021, 6:48pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305/3 "2021-01-26T18:48:39Z")

</div>

Hi Hugo,

All of what you want to do from Python is possible and has been done in various ParaViewWeb based application. Unfortunately most of those are close source but you should be able to find a starting point in our open source protocol file here for [widgets](https://github.com/Kitware/ParaView/blob/master/Web/Python/paraview/web/protocols.py#L3516-L3620) and for [selections](https://github.com/Kitware/ParaView/blob/master/Web/Python/paraview/web/protocols.py#L3397-L3450). Those may be buggy/broken but should be plenty to get you started.

HTH,

Seb

---

<div class="post-metadata">

### Author: ![Hugo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hugo/32/7836_2.png) [@Hugo](https://discourse.paraview.org/u/Hugo)
#### Post date: [January 27, 2021, 4:10pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305/4 "2021-01-27T16:10:07Z")

</div>

Great!  
Thank you for your answers, i’ll take a look to that.  
Hugo

---

<div class="post-metadata">

### Author: ![Hugo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hugo/32/7836_2.png) [@Hugo](https://discourse.paraview.org/u/Hugo)
#### Post date: [January 28, 2021, 2:33pm UTC](https://discourse.paraview.org/t/view-interactivity-in-pvpython/6305/5 "2021-01-28T14:33:00Z")

</div>

I’ve looked to paraview lite, it seems really interesting, easy to deploy, and to customize.  
Is it possible to bind python from it?  
I’m thinking about moving my python interface to a custom paraview lite and keep my paraview process in python.
