The trame_remote.py module#

Summary#

send_pl

Send the plotter meshes to a remote trame service.

send_mesh

Send a mesh to a remote trame service.

Description#

Module for trame websocket client functions.

Module detail#

trame_remote.send_pl(plotter: pyvista.Plotter, host: str = 'localhost', port: int = 8765)#

Send the plotter meshes to a remote trame service.

Since plotter can’t be pickled, we send the meshes list instead.

Parameters:
plotterpv.Plotter

Plotter to send.

hoststr, optional

Websocket host to connect to, by default “localhost”.

portint, optional

Websocket port to connect to, by default 8765.

trame_remote.send_mesh(mesh: pyvista.PolyData | pyvista.MultiBlock, host: str = 'localhost', port: int = 8765)#

Send a mesh to a remote trame service.

Parameters:
meshUnion[pv.PolyData, pv.MultiBlock]

Mesh to send.

hoststr, optional

Websocket host to connect to, by default “localhost”.

portint, optional

Websocket port to connect to, by default 8765.