Server Manager Proxified

streamlit_pyvista.server_managers.server_manager_proxified.run_trame_viewer(server_port, file_path)[source]

Launch a Trame server using python subprocess

streamlit_pyvista.server_managers.server_manager_proxified.run_proxy()[source]
class streamlit_pyvista.server_managers.server_manager_proxified.ServerManagerProxified(host='0.0.0.0', port=8080, proxy_host='127.0.0.1', proxy_port=5000)[source]

Bases: ServerManagerBase

Implementation of ServerManagerBase that make use of a proxy for remote connection

__init__(host='0.0.0.0', port=8080, proxy_host='127.0.0.1', proxy_port=5000)[source]
init_connection()[source]

This function receive request of clients that require a trame server to display meshes. It’s in this class that we need by any means start a trame server and get its endpoints :returns: A response containing a json with all required endpoint for a MeshViewerComponent to work properly :rtype: Response

register_server_to_proxy(host)[source]
static get_launch_path()[source]

This function must be used to get the path to the file of the manager that will be launched :returns: the path to the file that launch the server :rtype: str