A simple example of a ParaViewWeb remote renderer.
You will need a special version of Python which includes ParaViewWeb. This can be obtained by installing the ParaView desktop application on your system. It will include a Python binary called pvpython
. On Windows, it will be located somewhere like:
C:\Program Files\ParaView 5.5.2-Qt5-MPI-Windows-64bit/bin/pvpython.exe
You will need to install Node.js to build and serve the web client.
Navigate to /client/. Install the project dependencies by typing:
npm install
Navigate to /server/. Run vtk_server.py using pvpython
by typing (on Windows):
"C:\Program Files\ParaView 5.5.2-Qt5-MPI-Windows-64bit/bin/pvpython.exe" vtk_server.py --port 1234
Navigate to /client/. To serve the web client in development mode, type:
npm start
and open localhost:9999 in your web browser.
To build a production version of the web client, type:
npm run build