# \#python

**URL:** https://discourse.paraview.org/tag/python/1.md

[Latest](https://discourse.paraview.org/latest.md) · [Categories](https://discourse.paraview.org/categories.md) · [Tags](https://discourse.paraview.org/tags.md)

---

## [CleanToGrid equivalent in vtk](https://discourse.paraview.org/t/cleantogrid-equivalent-in-vtk/17736)

<div class="topic-metadata">

**Author:** [@MiguelAngelAGUIRRE](https://discourse.paraview.org/u/MiguelAngelAGUIRRE)\
**Replies:** 1\
**Last updated:** [September 22, 2026, 7:11am UTC](https://discourse.paraview.org/t/cleantogrid-equivalent-in-vtk/17736 "2026-09-22T07:11:53Z")

</div>

Hello, I’m making a Python Programmable filter with several vtk operations concatenated. One of this operations requires applying CleanToGrid to a vtk object (It can be either vtkMultiBlockDataSet or vtkUnstructuredGrid…

---

## [Dynamic GUI Generation for Python Plugins](https://discourse.paraview.org/t/dynamic-gui-generation-for-python-plugins/17723)

<div class="topic-metadata">

**Author:** [@Felipe\_Bordeu](https://discourse.paraview.org/u/Felipe_Bordeu)\
**Replies:** 1\
**Last updated:** [September 14, 2026, 9:31am UTC](https://discourse.paraview.org/t/dynamic-gui-generation-for-python-plugins/17723 "2026-09-14T09:31:23Z")

</div>

Hi ParaView Community, I do a lot of prototyping, and one feature I use heavily is Python plugins in ParaView. They make it possible to turn a prototype into something that instantly looks and feels professional, thank…

---

## [Python Calculator gives a scalar instead of a vector when applied after a Transform filter](https://discourse.paraview.org/t/python-calculator-gives-a-scalar-instead-of-a-vector-when-applied-after-a-transform-filter/17705)

<div class="topic-metadata">

**Author:** [@Joao\_Pedro\_Perdigao](https://discourse.paraview.org/u/Joao_Pedro_Perdigao)\
**Replies:** 9\
**Last updated:** [August 31, 2026, 10:26pm UTC](https://discourse.paraview.org/t/python-calculator-gives-a-scalar-instead-of-a-vector-when-applied-after-a-transform-filter/17705 "2026-08-31T22:26:50Z")

</div>

Setup: I have a Cell Data velocity vector u (3 components) on a Structured/Curvilinear Grid. I apply a Transform filter (rotation), then a Python Calculator on top with the expression u/20.15. Problem: After the Transfo…

---

## [Mismatch of points/tuples between vtkmCleanGrid and its VTK-numpy-wrapper](https://discourse.paraview.org/t/mismatch-of-points-tuples-between-vtkmcleangrid-and-its-vtk-numpy-wrapper/17698)

<div class="topic-metadata">

**Author:** [@Bodacious](https://discourse.paraview.org/u/Bodacious)\
**Replies:** 8\
**Last updated:** [August 27, 2026, 6:21pm UTC](https://discourse.paraview.org/t/mismatch-of-points-tuples-between-vtkmcleangrid-and-its-vtk-numpy-wrapper/17698 "2026-08-27T18:21:49Z")

</div>

Hello, I have a vtkUnstructuredGrid dataset that I filter with a vtkmCleanGrid VTK object in a programmable filter, whose objective is to perform the divergence operator on the VTK-numpy wrapped output of the vtkmCleanGr…

---

## [Confusion about using the PVD reader from Python](https://discourse.paraview.org/t/confusion-about-using-the-pvd-reader-from-python/17658)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)\
**Replies:** 3\
**Last updated:** [August 6, 2026, 6:57pm UTC](https://discourse.paraview.org/t/confusion-about-using-the-pvd-reader-from-python/17658 "2026-08-06T18:57:27Z")

</div>

I want to read a .pvd file from within a Python algorithm, and pass the underlying object (in my case a vtkMultiBlockDataSet) to an output port of my filter. So that my plugin be self-contained, I do not open the file wi…

---

## [Getting "Byte order could not be determined" error when opening up Ensight Case Gold files written from ANSYS Fluent 2021R2](https://discourse.paraview.org/t/getting-byte-order-could-not-be-determined-error-when-opening-up-ensight-case-gold-files-written-from-ansys-fluent-2021r2/12250)

<div class="topic-metadata">

**Author:** [@austinbenny](https://discourse.paraview.org/u/austinbenny)\
**Replies:** 18\
**Last updated:** [July 29, 2026, 8:50am UTC](https://discourse.paraview.org/t/getting-byte-order-could-not-be-determined-error-when-opening-up-ensight-case-gold-files-written-from-ansys-fluent-2021r2/12250 "2026-07-29T08:50:07Z")

</div>

My workflow is to have ANSYS Fluent 2021R2 write Ensight Case Gold files that i then post-process in paraview. I could successfully do this before with a different simulation (the ANSYS Fluent version and paraview versio…

---

## [Running a python script as headless without pvpython/pvbatch](https://discourse.paraview.org/t/running-a-python-script-as-headless-without-pvpython-pvbatch/17665)

<div class="topic-metadata">

**Author:** [@Rowan\_Wiles](https://discourse.paraview.org/u/Rowan_Wiles)\
**Replies:** 3\
**Last updated:** [July 23, 2026, 8:40pm UTC](https://discourse.paraview.org/t/running-a-python-script-as-headless-without-pvpython-pvbatch/17665 "2026-07-23T20:40:18Z")

</div>

I’m working on a Paraview project that runs as a Python script. It’s crashing when I try using it in a CAVE and I believe it’s because of the VTK Render window it’s opening whenever it runs. I want to stop this window fr…

---

## [paraview.simple.reader to VTK object?](https://discourse.paraview.org/t/paraview-simple-reader-to-vtk-object/3496)

<div class="topic-metadata">

**Author:** [@whophil](https://discourse.paraview.org/u/whophil)\
**Replies:** 3\
**Last updated:** [July 15, 2026, 3:23pm UTC](https://discourse.paraview.org/t/paraview-simple-reader-to-vtk-object/3496 "2026-07-15T15:23:58Z")

</div>

I am reading a binary TecPlot file in Python. I tried to use vtk.vtkTecplotReader, but this crashes. Instead, I have shifted my approach to use paraview.simple.VisItTecplotBinaryReader. Ultimately I would like to use VT…

---

## [render multiple views with single Catalyst Python script](https://discourse.paraview.org/t/render-multiple-views-with-single-catalyst-python-script/16891)

<div class="topic-metadata">

**Author:** [@uturuncoglu](https://discourse.paraview.org/u/uturuncoglu)\
**Replies:** 2\
**Last updated:** [July 10, 2026, 2:43pm UTC](https://discourse.paraview.org/t/render-multiple-views-with-single-catalyst-python-script/16891 "2026-07-10T14:43:40Z")

</div>

Hi, I wonder if there is a way to output all the render views with Catalyst. In my case, I have four panel but the Catalyst Python script is only processing the one of them. Of course, I could create four different scri…

---

## [How to access to a plugin properties panel?](https://discourse.paraview.org/t/how-to-access-to-a-plugin-properties-panel/2720)

<div class="topic-metadata">

**Author:** [@Loic](https://discourse.paraview.org/u/Loic)\
**Replies:** 5\
**Last updated:** [July 10, 2026, 8:56am UTC](https://discourse.paraview.org/t/how-to-access-to-a-plugin-properties-panel/2720 "2026-07-10T08:56:24Z")

</div>

Hi, I would like to develop a plugin based on VTKPythonAlgorithmBase. This plugin take as input a vtkDataset and 3 coordinates representing the position of a camera. With the following code, I’ve managed to expose the…

---

## [How to find the view in which a source is rendered, and vice versa](https://discourse.paraview.org/t/how-to-find-the-view-in-which-a-source-is-rendered-and-vice-versa/17642)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)\
**Replies:** 4\
**Last updated:** [July 7, 2026, 1:36pm UTC](https://discourse.paraview.org/t/how-to-find-the-view-in-which-a-source-is-rendered-and-vice-versa/17642 "2026-07-07T13:36:51Z")

</div>

In the ParaView GUI, a source in the pipeline browser and its representation in a view are linked, shown by the eye icon. How can I find using Python scripting the source for a given view proxy object, and the view prox…

---

## [How to keep insertion order in the Spreadsheet table columns?](https://discourse.paraview.org/t/how-to-keep-insertion-order-in-the-spreadsheet-table-columns/17638)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)\
**Replies:** 2\
**Last updated:** [June 29, 2026, 1:20pm UTC](https://discourse.paraview.org/t/how-to-keep-insertion-order-in-the-spreadsheet-table-columns/17638 "2026-06-29T13:20:03Z")

</div>

In the RequestData method of my Python plugin, I fill a VTKTable by columns: one column for each dataset: from vtkmodules.numpy\_interface import dataset\_adapter def RequestData(self, request, inInfoVector, outInfoVecto…

---

## [Strange display representation of VTK\_POLYHEDRON cells](https://discourse.paraview.org/t/strange-display-representation-of-vtk-polyhedron-cells/14612)

<div class="topic-metadata">

**Author:** [@Ieeshka](https://discourse.paraview.org/u/Ieeshka)\
**Replies:** 4\
**Last updated:** [June 24, 2026, 2:47pm UTC](https://discourse.paraview.org/t/strange-display-representation-of-vtk-polyhedron-cells/14612 "2026-06-24T14:47:28Z")

</div>

Hello everybody! I am a newbie in ParaView and I would appreciate some explanation of the cell visualization problem I observe (VTK\_POLYHEDRON). I have generated VTU file with 3D mesh of polyhedrons using my own python …

---

## [VTK "Structured Points" Procedure](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834)

<div class="topic-metadata">

**Author:** [@guis1901](https://discourse.paraview.org/u/guis1901)\
**Replies:** 10\
**Last updated:** [June 16, 2026, 10:02am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834 "2026-06-16T10:02:48Z")

</div>

Hello, I am completely new to this so please feel free to refer me to an existing response/post. I have, however, searched the forum and not found what I am looking to do… I am importing data from a CSV in a X-Y-Z-Sig1…

---

## [How to know whether a script is executed by ParaView Python?](https://discourse.paraview.org/t/how-to-know-whether-a-script-is-executed-by-paraview-python/17610)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)\
**Replies:** 6\
**Last updated:** [June 10, 2026, 3:51pm UTC](https://discourse.paraview.org/t/how-to-know-whether-a-script-is-executed-by-paraview-python/17610 "2026-06-10T15:51:56Z")

</div>

Is there a way to know at runtime if a Python file is executed from the ParaView environment (pvpython, pvbatch or from the Python shell of the GUI) or from a standard Python interpreter? I checked the environment variab…

---

## [homogenize fields between python and spreadsheet](https://discourse.paraview.org/t/homogenize-fields-between-python-and-spreadsheet/17580)

<div class="topic-metadata">

**Author:** [@otaolafr](https://discourse.paraview.org/u/otaolafr)\
**Replies:** 3\
**Last updated:** [June 9, 2026, 2:28pm UTC](https://discourse.paraview.org/t/homogenize-fields-between-python-and-spreadsheet/17580 "2026-06-09T14:28:04Z")

</div>

Hello, i would like to ask for the homogenization of what we ‘see’ on the spreadsheet and what we ‘use’ in python (regarding the names of fields). one example of this is ‘Point Id’, i wanted to use it: QuerySelect(Quer…

---

## [Paraview Python Shell becomes inactive](https://discourse.paraview.org/t/paraview-python-shell-becomes-inactive/17588)

<div class="topic-metadata">

**Author:** [@Mezzerine](https://discourse.paraview.org/u/Mezzerine)\
**Replies:** 2\
**Last updated:** [May 28, 2026, 2:21pm UTC](https://discourse.paraview.org/t/paraview-python-shell-becomes-inactive/17588 "2026-05-28T14:21:51Z")

</div>

I have some version of below commands I run with the python shell inside paraview (either v5.13 or v6.0). And at a certain point the commands don’t seem to do anything anymore. Not even an error message is given if I put…

---

## [Is threre a way to interact with PythonView?](https://discourse.paraview.org/t/is-threre-a-way-to-interact-with-pythonview/7108)

<div class="topic-metadata">

**Author:** [@ymjia](https://discourse.paraview.org/u/ymjia)\
**Replies:** 4\
**Last updated:** [May 27, 2026, 10:50am UTC](https://discourse.paraview.org/t/is-threre-a-way-to-interact-with-pythonview/7108 "2026-05-27T10:50:27Z")

</div>

I am using matplotlib through PythonView, and try to do something respond to a mouse click, Is it possible? I found the render() function will re-run after mouse drag in PythonView, if the render function can get some m…

---

## [How to change the zoom level when running pvbatch script](https://discourse.paraview.org/t/how-to-change-the-zoom-level-when-running-pvbatch-script/17577)

<div class="topic-metadata">

**Author:** [@Nikolaos\_Beratlis](https://discourse.paraview.org/u/Nikolaos_Beratlis)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 3:41pm UTC](https://discourse.paraview.org/t/how-to-change-the-zoom-level-when-running-pvbatch-script/17577 "2026-05-22T15:41:27Z")

</div>

I have created a Paraview state file .pvsm. When I ran a python script that loads the state file and saves an animation the zoom level is different than then one when I was creating the state file in Paraview. Is it poss…

---

## [CMake description of ParaView 6.x dose not match the actual requirements about Python.](https://discourse.paraview.org/t/cmake-description-of-paraview-6-x-dose-not-match-the-actual-requirements-about-python/17552)

<div class="topic-metadata">

**Author:** [@earth2001y](https://discourse.paraview.org/u/earth2001y)\
**Replies:** 6\
**Last updated:** [May 8, 2026, 12:55am UTC](https://discourse.paraview.org/t/cmake-description-of-paraview-6-x-dose-not-match-the-actual-requirements-about-python/17552 "2026-05-08T00:55:17Z")

</div>

pvpython of ParaView 6.1 build from source code on Rocky Linux 8 doesn’t work import paraview.simple with following message. \>\>\> import paraview.simple Traceback (most recent call last): File "\<stdin\>", line 1, in \<mo…

---

## [How to run a python macro with paraFoam?](https://discourse.paraview.org/t/how-to-run-a-python-macro-with-parafoam/17530)

<div class="topic-metadata">

**Author:** [@Faraz\_Hussain](https://discourse.paraview.org/u/Faraz_Hussain)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 8:49pm UTC](https://discourse.paraview.org/t/how-to-run-a-python-macro-with-parafoam/17530 "2026-04-21T20:49:55Z")

</div>

I created a simple macro to automate some post processing. It works if I launch paraFoam and click the button for it in the GUI. But I want to run this without having to “click the button”. Here’s what I tried along with…

---

## [Tips to visualize a vector field with an overlaid molecule](https://discourse.paraview.org/t/tips-to-visualize-a-vector-field-with-an-overlaid-molecule/17493)

<div class="topic-metadata">

**Author:** [@jzwanzig](https://discourse.paraview.org/u/jzwanzig)\
**Replies:** 11\
**Last updated:** [March 26, 2026, 5:00pm UTC](https://discourse.paraview.org/t/tips-to-visualize-a-vector-field-with-an-overlaid-molecule/17493 "2026-03-26T17:00:44Z")

</div>

Hello, perhaps this question is better suited to a vtk forum, but I thought I’d start here: I generate vector field data with an ab initio code, and I have been able to convert it to a vtkStrucuturedGrid and visualize it…

---

## [Paraview 6.1.0 contains new pvpython that does not correspond with the latest Paraview 6.0.1 Manuals](https://discourse.paraview.org/t/paraview-6-1-0-contains-new-pvpython-that-does-not-correspond-with-the-latest-paraview-6-0-1-manuals/17489)

<div class="topic-metadata">

**Author:** [@aspodgorski](https://discourse.paraview.org/u/aspodgorski)\
**Replies:** 1\
**Last updated:** [March 23, 2026, 12:32pm UTC](https://discourse.paraview.org/t/paraview-6-1-0-contains-new-pvpython-that-does-not-correspond-with-the-latest-paraview-6-0-1-manuals/17489 "2026-03-23T12:32:27Z")

</div>

Where can I find a list of commands for pvpython in Paraview 6.1.0. The Commands used in Paraview 6.0.1 Manuals generate errors in Paraview 6.1.0 pvpython. I intend to use the Paraview Catalyst and it is urgent. Pleas…

---

## [pvbatch - vscode - debugpy](https://discourse.paraview.org/t/pvbatch-vscode-debugpy/17469)

<div class="topic-metadata">

**Author:** [@paul18fr](https://discourse.paraview.org/u/paul18fr)\
**Replies:** 2\
**Last updated:** [March 10, 2026, 5:51pm UTC](https://discourse.paraview.org/t/pvbatch-vscode-debugpy/17469 "2026-03-10T17:51:01Z")

</div>

Hi Does somebody have ever experienced using pvbatch with vscode + its debugger (debugpy)? Indeed, ‘debugpy’ has not been included into Paraview python packages (it has been installed into my venv but the process is he…

---

## [How to extract data form PlotDataOverTime filer with python/pvpython](https://discourse.paraview.org/t/how-to-extract-data-form-plotdataovertime-filer-with-python-pvpython/17456)

<div class="topic-metadata">

**Author:** [@DioCanada](https://discourse.paraview.org/u/DioCanada)\
**Replies:** 1\
**Last updated:** [March 2, 2026, 9:22am UTC](https://discourse.paraview.org/t/how-to-extract-data-form-plotdataovertime-filer-with-python-pvpython/17456 "2026-03-02T09:22:00Z")

</div>

Hello all, I’m writing a pvpython script to evaluate the mean flow over a surface for every time step, and do some further calculation with the extracted data. As a first approach, i applied the integrate variables fil…

---

## [Visualising thickness of plate/shell elements](https://discourse.paraview.org/t/visualising-thickness-of-plate-shell-elements/17413)

<div class="topic-metadata">

**Author:** [@SFox](https://discourse.paraview.org/u/SFox)\
**Replies:** 3\
**Last updated:** [January 29, 2026, 8:55am UTC](https://discourse.paraview.org/t/visualising-thickness-of-plate-shell-elements/17413 "2026-01-29T08:55:37Z")

</div>

I am interested in visualising the thickness of 2D shell elements. I have a toy problem of a collision between a cantilever supported tube, and a rigid sphere. I would like to add some thickness to the shell elements …

---

## [Help with Threshold filter](https://discourse.paraview.org/t/help-with-threshold-filter/17399)

<div class="topic-metadata">

**Author:** [@Patrick.Needs.Help](https://discourse.paraview.org/u/Patrick.Needs.Help)\
**Replies:** 4\
**Last updated:** [January 16, 2026, 5:24pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399 "2026-01-16T17:24:03Z")

</div>

Hello I am trying to script a headless version of a process that I am using through the gui for school and I am running into a bit of an issue with the threshold fitler. I am using a Programmable Filter (to subtract 2 se…

---

## [Fail in applying materials to a paraview object - vtkOSPRayMaterial error](https://discourse.paraview.org/t/fail-in-applying-materials-to-a-paraview-object-vtkospraymaterial-error/16079)

<div class="topic-metadata">

**Author:** [@aero.py](https://discourse.paraview.org/u/aero.py)\
**Replies:** 3\
**Last updated:** [December 9, 2025, 10:43am UTC](https://discourse.paraview.org/t/fail-in-applying-materials-to-a-paraview-object-vtkospraymaterial-error/16079 "2025-12-09T10:43:23Z")

</div>

Hi, I’m trying to apply material properties to active objects in a paraview session through python. The premise is that if I execute the steps manually I can get the materials correctly in place. If I emulate the python…

---

## [Clip Filter "Show Plane" not hideable from python script](https://discourse.paraview.org/t/clip-filter-show-plane-not-hideable-from-python-script/17352)

<div class="topic-metadata">

**Author:** [@Sly\_ld](https://discourse.paraview.org/u/Sly_ld)\
**Replies:** 1\
**Last updated:** [December 8, 2025, 7:40am UTC](https://discourse.paraview.org/t/clip-filter-show-plane-not-hideable-from-python-script/17352 "2025-12-08T07:40:05Z")

</div>

I’m applying a clip filter to a box data for a basic assignment. It’s pretty simple, I do some basic manipulation on the box\_data then I apply the clip filter to it. However, I can’t seem to find a way to hide the plane …

---

## [pvpython script freezes in Jupyter](https://discourse.paraview.org/t/pvpython-script-freezes-in-jupyter/17350)

<div class="topic-metadata">

**Author:** [@greg](https://discourse.paraview.org/u/greg)\
**Replies:** 0\
**Last updated:** [December 5, 2025, 2:01pm UTC](https://discourse.paraview.org/t/pvpython-script-freezes-in-jupyter/17350 "2025-12-05T14:01:53Z")

</div>

I am trying to connect from Jupyter to a catalyst in situ simulation, but Jupyter freezes in the moment, when the in situ side connects. ( The aim of this experiment is to show some statistics, no graphics, in Jupyter fr…

[Next page](https://discourse.paraview.org/tag/python/1.md?match_all_tags=true&page=1&tags%5B%5D=python)
