Difficulty in setting up vtkpython

Continuing the discussion from Unable to Load big VTI files in VTK.JS:

I tried for server side rendering as the size of vti files is too huge for client side rendering. I’m exploring vtkpython. Followed RemoteRenderer example from following link.

However, I’m unable to find the vtkpython binary to start the server. I installed python-3.9 on my machine and also installed the corresponding vtk whl file from vtk.org. Can anyone refer me to some link for initiall setup ?

Hi @simplyvish,

We’ve created trame for streamlining the usage of VTK or ParaView in the web with little to no web knowledge.

That example is doing remote rendering with geometry, but it can easily be extended to support volume rendering using plain VTK.

To run that example you can do the following

git clone https://github.com/Kitware/trame.git # just to get examples
cd trame
python3.9 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install trame
pip install vtk
python ./examples/VTK/ContourGeometry/RemoteRendering.py

You might also be interested by our tutorial [video] and that volume rendering example.

1 Like

Hi @Sebastien_Jourdain ,

Started on it. Will check with you if any difficulty arose. Thanks :slightly_smiling_face: