The RemoteView can be used with either the VTK-Web or ParaView-Web servers. The current example will not work until you start one of the servers below on your local machine.
Using VTK as server
r""" This module is a VTK Web server application. The following command line illustrates how to use it:: $ vtkpython .../vtk_server.py Any VTK Web executable script comes with a set of standard arguments that can be overriden if need be:: --host localhost Interface on which the HTTP server will listen. --port 8080 Port number on which the HTTP server will listen. --content /path-to-web-content/ Directory that you want to serve as static web content. By default, this variable is empty which means that we rely on another server to deliver the static content and the current process only focuses on the WebSocket connectivity of clients. --authKey wslink-secret Secret key that should be provided by the client to allow it to make any WebSocket communication. The client will assume if none is given that the server expects "wslink-secret" as the secret key. """
# import to process args import sys import os
# import vtk modules. import vtk from vtk.web import protocols from vtk.web import wslink as vtk_wslink from wslink import server
# ============================================================================= # Create custom ServerProtocol class to handle clients requests # =============================================================================