# ParaView Python Shell - command on plugin is NOT called

**URL:** https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148
**Category:** Development
**Created:** [February 11, 2025, 8:00am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148 "2025-02-11T08:00:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 11, 2025, 8:00am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/1 "2025-02-11T08:00:02Z")

</div>

Hello!

I use

```auto
print(j.GetProperty("my_property_from_XML"))

```

Which in XML is an information\_only property which has to call some command on my plugin.

However, it is not actually called, which is seen from the debugger. In python returns some old value, and the target command seems to have been called only once.

What is the correct way to force real execution of my server-side (plugin) command and getting its result?

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: [February 11, 2025, 8:13am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/2 "2025-02-11T08:13:39Z")

</div>

Use UpdatePropertyInformatin on the proxy

[https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html#ad929084cd23f1f465399a116ca833f65](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html#ad929084cd23f1f465399a116ca833f65)

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 11, 2025, 8:44am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/3 "2025-02-11T08:44:46Z")

</div>

As always, Mathieu saves the day, thank you a lot

Could I trigger this command from the server side?

Like, I call some coommand from python

```auto
print(j.mycommand())

```

And it calls the target command from the plugin XML specified with “command”  
And server somehow forces the update of all properties. Is that possible?

---

<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: [February 11, 2025, 8:46am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/4 "2025-02-11T08:46:15Z")

</div>

> [@joint](#):
>
> Could I trigger this command from the server side?

That doesnt make much sense, the client control what the server does. If you are running code server side, you can just access your server side filter directly.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 14, 2025, 6:06am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/5 "2025-02-14T06:06:40Z")

</div>

> [@mwestphal](#):
>
> If you are running code server side, you can just access your server side filter directly.

“If you are running code server side”

What do you mean? You mean, when it is a single binary, run on single device, right?

How can one then use such an opportunity from Python?

---

<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: [February 17, 2025, 9:48am UTC](https://discourse.paraview.org/t/paraview-python-shell-command-on-plugin-is-not-called/16148/6 "2025-02-17T09:48:50Z")

</div>

No, server side code is, for example, VTK Filter code, while client side code, is, for example, Qt code or pvpython code.
