# Transition from Script to Trame visualisation

**URL:** https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273
**Category:** Web Support
**Created:** [March 24, 2022, 2:58pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273 "2022-03-24T14:58:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![s195t](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@s195t](https://discourse.paraview.org/u/s195t)
#### Post date: [March 24, 2022, 2:58pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273/1 "2022-03-24T14:58:01Z")

</div>

Dear everyone,  
Since a couple of days I am working on a python script for postprocessing CFD postprocessing and it’s working well. Now that the script is done, I would like to have Trame to show the various views that it is producing instead of having it in sparse windows or in paraview itself as I think that a nicer UI would make it more usable.  
Is there an easy way to “port” an existing pipeline/script to be used with trame?

Thank you

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [March 24, 2022, 3:22pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273/2 "2022-03-24T15:22:09Z")

</div>

There should be, but it truly depends on what your script is doing and what kind of UI/interaction you are looking for.

For just bundling windows to a webpage, you can look at how we converted VTK/Python examples to trame app.

- CarotidFlowGlyphs [VTK/Python](https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/CarotidFlowGlyphs/) / [trame](https://github.com/Kitware/trame-tutorial/blob/master/01_vtk/solution_flow.py)
- SimpleRayCast [VTK/Python](https://kitware.github.io/vtk-examples/site/Python/VolumeRendering/SimpleRayCast/) / [trame](https://github.com/Kitware/trame-tutorial/blob/master/01_vtk/solution_ray_cast.py)

HTH

---

<div class="post-metadata">

### Author: ![s195t](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@s195t](https://discourse.paraview.org/u/s195t)
#### Post date: [March 27, 2022, 3:28pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273/3 "2022-03-27T15:28:51Z")

</div>

Can we handle paraview windows as VTK windows?  
If it’s 1:1 compatible then this makes things a little bit easier  
I have very simple views to display and I do not need to interact with them actively. I just need some sort of UI to keep all the views in one window

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [March 27, 2022, 5:18pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273/4 "2022-03-27T17:18:37Z")

</div>

Yes ParaView Views are the same thing as a vtkRenderWindow. You can see [that simple ParaView](https://github.com/Kitware/trame/blob/master/examples/ParaView/SimpleCone/RemoteRendering.py) based example.

---

<div class="post-metadata">

### Author: ![s195t](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@s195t](https://discourse.paraview.org/u/s195t)
#### Post date: [March 29, 2022, 12:07pm UTC](https://discourse.paraview.org/t/transition-from-script-to-trame-visualisation/9273/5 "2022-03-29T12:07:49Z")

</div>

Thank you, this solved my issue
