# how can I extract python script?

**URL:** https://discourse.paraview.org/t/how-can-i-extract-python-script/6603
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [March 3, 2021, 4:58pm UTC](https://discourse.paraview.org/t/how-can-i-extract-python-script/6603 "2021-03-03T16:58:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Pppp](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@Pppp](https://discourse.paraview.org/u/Pppp)
#### Post date: [March 3, 2021, 4:58pm UTC](https://discourse.paraview.org/t/how-can-i-extract-python-script/6603/1 "2021-03-03T16:58:43Z")

</div>

If I have applied vtk file as input and used curvature filter to the input file. How can I extract the python script or codes which is been used to the input data. Is there any option from paraview to view the codes done by the paraview.

When I apply programmable

 ![ss1](https://discourse.paraview.org/uploads/default/original/2X/5/57b79e10d320e90482f173c2fb25446240de83b1.jpeg) filter or live programmable filter, I find a clear empty script.

---

<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: [March 3, 2021, 5:00pm UTC](https://discourse.paraview.org/t/how-can-i-extract-python-script/6603/2 "2021-03-03T17:00:59Z")

</div>

> [@Pppp](#):
>
> how can I extract the python script or codes which is been used to the input data.

You mean the code of the curvature filter ?  
[https://vtk.org/doc/nightly/html/classvtkCurvatures.html](https://vtk.org/doc/nightly/html/classvtkCurvatures.html)  
[https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/General/vtkCurvatures.cxx](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/General/vtkCurvatures.cxx)

> When I apply programmable filter or live programmable filter, I find a clear empty script.

This is expected, these are filter you are intended to programm yourself.

---

<div class="post-metadata">

### Author: ![Pppp](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@Pppp](https://discourse.paraview.org/u/Pppp)
#### Post date: [March 3, 2021, 5:27pm UTC](https://discourse.paraview.org/t/how-can-i-extract-python-script/6603/3 "2021-03-03T17:27:58Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/General/vtkCurvatures.cxx](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/General/vtkCurvatures.cxx)  
This is the code for curvature filter. I got it.

But How can visualize the codes directly in Paraview. If I am using any type of filter in vtk data input. How can I visualize the codes for different filters.

---

<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: [March 4, 2021, 8:52am UTC](https://discourse.paraview.org/t/how-can-i-extract-python-script/6603/4 "2021-03-04T08:52:40Z")

</div>

You can’t. You can show the documentation though.
