# pvpython outputs are different in MacOS and Linux, Is it a BUG?

**URL:** https://discourse.paraview.org/t/pvpython-outputs-are-different-in-macos-and-linux-is-it-a-bug/5246
**Category:** ParaView Support
**Tags:** python
**Created:** [September 2, 2020, 7:57am UTC](https://discourse.paraview.org/t/pvpython-outputs-are-different-in-macos-and-linux-is-it-a-bug/5246 "2020-09-02T07:57:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sharaborin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sharaborin](https://discourse.paraview.org/u/sharaborin)
#### Post date: [September 2, 2020, 7:57am UTC](https://discourse.paraview.org/t/pvpython-outputs-are-different-in-macos-and-linux-is-it-a-bug/5246/1 "2020-09-02T07:57:31Z")

</div>

Dear all!

I am a newbie in pvpython scripting, I am trying to render my scientific findings but the object which is put into the renderview using Source=\>Cylinder  
or script variant:

```
# create a new 'Cylinder'
cylinder1 = Cylinder()
cylinder1.Resolution = 112
cylinder1.Height = 30.0
cylinder1.Capping = 0

```

pvpython does not render the cylinder in Linux, However in my Mac OS laptop It is rendered (Please see attached pictures, don’t pay attention to the fact that vortexes are different it is due to different time steps).  
The same version of pvpython in both machines  
$ pvpython -V  
paraview version 5.8.0  
the same script, but different results. Who knows what is the problem?  
I took the script thanks to Mathieu Westphal [in this link](https://discourse.paraview.org/t/generate-a-macro-from-a-state/2295/5)[l2\_state\_for\_script3.py](https://discourse.paraview.org/uploads/short-url/1zGYiYYWUHHkuHZ3iLZbUVEI23S.py) (11.0 KB)

 ![2020-09-02 10.43.38](https://discourse.paraview.org/uploads/default/original/2X/1/11c16887a1fbb4c1db190b3a77bcf969ba6994b7.jpeg) ![2020-09-02 10.43.56](https://discourse.paraview.org/uploads/default/original/2X/c/cefe6dacbdc79a74fece18bcd2176ab87e84baec.jpeg)

Best regards,  
Evgenii

---

<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: [September 2, 2020, 8:04am UTC](https://discourse.paraview.org/t/pvpython-outputs-are-different-in-macos-and-linux-is-it-a-bug/5246/2 "2020-09-02T08:04:12Z")

</div>

```
Show()
Render()

```

Add this at the end of your script.

---

<div class="post-metadata">

### Author: ![sharaborin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sharaborin](https://discourse.paraview.org/u/sharaborin)
#### Post date: [September 2, 2020, 10:27am UTC](https://discourse.paraview.org/t/pvpython-outputs-are-different-in-macos-and-linux-is-it-a-bug/5246/3 "2020-09-02T10:27:21Z")

</div>

Thank you Mathieu!  
I am wondering why in Mac OS it is rendered automatically, but in Linux we need to explicitly add the commands mentioned by you?)

Best regards,  
Evgenii
