# Adding the line "from paraview.simple import Show" to a reader, restore the default settings in paraview

**URL:** https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791
**Category:** ParaView Support
**Created:** [November 17, 2022, 3:25pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791 "2022-11-17T15:25:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [November 17, 2022, 3:25pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791/1 "2022-11-17T15:25:41Z")

</div>

Hello,

as you can see from the title I have a very strange behavior while trying to implement a new reader using a python plugin.  
When the reader is automatically loaded from the PV\_PLUGIN\_PATH after opening e closing paraview two times all the settings are restored to the default values.  
But, when I put the python file somewhere else and load it via Tools-\>Manage plugins-\>Load New (and also select Autoload), the reset does not happen.  
Attached you find a example of the reader giving the issue (I added the `from paraview.simple import Show` to the [the CSV reader](https://github.com/Kitware/ParaView/blob/master/Examples/Plugins/PythonAlgorithm/PythonAlgorithmExamples.py) ).  
If you put it into the PV\_PLUGIN\_PATH, you should be able to reproduce the error.  
NOTE: It only happen with 5.10.1, no problem with 5.8.1  
[csvReader.py](https://discourse.paraview.org/uploads/short-url/lZK43XwhzJzuwNcrSmf5987UUCa.py) (5.4 KB)

---

<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 17, 2022, 3:27pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791/2 "2022-11-17T15:27:06Z")

</div>

Hi @gv871

Could you provide step by step procedure to reproduce the issue ?

Best,

---

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [November 17, 2022, 3:29pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791/3 "2022-11-17T15:29:16Z")

</div>

Hello @mwestphal ,

thanks for the quick answer.

You can copy the reader attached to my previous message to your PV\_PLUGIN\_PATH.  
Open/close Paraview a couple of times.  
It should restore the default settings.  
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: [November 17, 2022, 3:31pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791/4 "2022-11-17T15:31:37Z")

</div>

Unable to reproduce after 5 tries.

---

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [November 17, 2022, 3:45pm UTC](https://discourse.paraview.org/t/adding-the-line-from-paraview-simple-import-show-to-a-reader-restore-the-default-settings-in-paraview/10791/5 "2022-11-17T15:45:43Z")

</div>

Thanks for the try, I also tested with Paraview 5.11.  
If we have a `from paraview.simple import *` in the reader, and the reader is located in the PV\_PLUGIN\_PATH and not loaded via the Manage plugin window, I still have the same problem.
