how can I extract python script?

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

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

You mean the code of the curvature filter ?
https://vtk.org/doc/nightly/html/classvtkCurvatures.html
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.

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.

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