pyvista.plotting.themes._TrameConfig

Contents

pyvista.plotting.themes._TrameConfig#

class _TrameConfig[source]#

PyVista Trame configuration.

Examples

Set global trame view parameters.

>>> import pyvista as pv
>>> pv.global_theme.trame.interactive_ratio = 2
>>> pv.global_theme.trame.still_ratio = 2

Methods

Attributes

_TrameConfig.default_mode

Return or set the default mode of the Trame backend.

_TrameConfig.interactive_ratio

Return or set the interactive ratio for PyVista Trame views.

_TrameConfig.jupyter_extension_available

Return whether the trame_jupyter_extension is detected.

_TrameConfig.jupyter_extension_enabled

Return or set whether to use the trame_jupyter_extension to communicate with clients.

_TrameConfig.jupyter_server_name

Return or set the trame server name PyVista uses in Jupyter.

_TrameConfig.jupyter_server_port

Return or set the port for the Trame Jupyter server.

_TrameConfig.server_proxy_enabled

Return or set if use of relative URLs is enabled for the Jupyter interface.

_TrameConfig.server_proxy_prefix

Return or set URL prefix when using relative URLs with the Jupyter interface.

_TrameConfig.still_ratio

Return or set the still ratio for PyVista Trame views.