TrameService#

class ansys.tools.visualization_interface.backends.pyvista.trame_service.TrameService(websocket_host: str = 'localhost', websocket_port: int = 8765)#

Trame service class.

Initializes a trame service where you can send meshes to plot in a trame webview plotter.

Parameters:
websocket_hoststr, optional

Host where the webserver will listen for new plotters and meshes, by default “localhost”.

websocket_portint, optional

Port where the webserver will listen for new plotters and meshes, by default 8765.

Overview#

clear_plotter

Clears the web view in the service.

set_scene

Sets the web view scene for the trame service.

run

Start the trame web view and the websocket services.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.trame_service import TrameService

Method detail#

TrameService.clear_plotter()#

Clears the web view in the service.

TrameService.set_scene()#

Sets the web view scene for the trame service.

TrameService.run()#

Start the trame web view and the websocket services.