Server Manager
- class streamlit_pyvista.server_managers.server_manager.ServerManagerBase(host='0.0.0.0', port=8080)[source]
Bases:
ABCThis class is the base for any ServerManager implementation
- abstract 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
- streamlit_pyvista.server_managers.server_manager.run_trame_viewer(server_port, file_path)[source]
Launch a Trame server using python subprocess
- class streamlit_pyvista.server_managers.server_manager.ServerManager(host='0.0.0.0', port=8080)[source]
Bases:
ServerManagerBaseImplementation of a ServerManagerBase to run trame viewer locally
- 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