# Help creating a custom PythonView

**URL:** https://discourse.paraview.org/t/help-creating-a-custom-pythonview/602
**Category:** Development
**Created:** [September 19, 2018, 2:52pm UTC](https://discourse.paraview.org/t/help-creating-a-custom-pythonview/602 "2018-09-19T14:52:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![arnaumiro](https://discourse.paraview.org/user_avatar/discourse.paraview.org/arnaumiro/32/335_2.png) [@arnaumiro](https://discourse.paraview.org/u/arnaumiro)
#### Post date: [September 19, 2018, 2:52pm UTC](https://discourse.paraview.org/t/help-creating-a-custom-pythonview/602/1 "2018-09-19T14:52:16Z")

</div>

Hello,

I want to create a duplicate of the PythonView for my application so that I can modify the properties of the script via the XML and the default\_values for the script property.

I have followed the thread

[https://public.kitware.com/pipermail/paraview/2018-January/041819.html](https://public.kitware.com/pipermail/paraview/2018-January/041819.html)

and

[https://public.kitware.com/pipermail/paraview/2018-January/041765.html](https://public.kitware.com/pipermail/paraview/2018-January/041765.html)

I managed to reproduce the example by Mathieu Westphal and duplicate the render view to obtain a RenderView 2. Then I applied the same procedure to duplicate the PythonView, however, when I add it to ParaView it complains by saying:

Cannot locate the pqView for the view proxy of type “MyPythonView”

I couldn’t manage to get past this point. I’m attaching my implementation. Any help would be greatly appreciated.

Thanks.

[vtkMyPythonView.cxx](https://discourse.paraview.org/uploads/default/original/1X/8207c07421ae51a47a58e718f8e61ec3f9195006.cxx) (309 Bytes)  
[MyPythonView.xml](https://discourse.paraview.org/uploads/default/original/1X/6e6f25480c03fab30e92bf6598f2a5fa03be1c69.xml) (3.3 KB)  
[CMakeLists.txt](https://discourse.paraview.org/uploads/default/original/1X/770f09e0b35037a6c838c9fea51bc00a29d5d353.txt) (834 Bytes)  
[vtkMyPythonView.h](https://discourse.paraview.org/uploads/default/original/1X/69ed728be24004a64fe23d8ee418f3bb6670fe71.h) (849 Bytes)

---

<div class="post-metadata">

### Author: ![arnaumiro](https://discourse.paraview.org/user_avatar/discourse.paraview.org/arnaumiro/32/335_2.png) [@arnaumiro](https://discourse.paraview.org/u/arnaumiro)
#### Post date: [September 28, 2018, 11:31am UTC](https://discourse.paraview.org/t/help-creating-a-custom-pythonview/602/2 "2018-09-28T11:31:16Z")

</div>

I’ve managed to solve this issue. I’m posting here my solution for further reference.

[MyPythonView.zip](https://discourse.paraview.org/uploads/default/original/1X/095ebccdd3a51a5981860282463f299628ba5c8d.zip) (6.0 KB)
