pyvista.Plotter.export_vtksz

pyvista.Plotter.export_vtksz#

Plotter.export_vtksz(
filename: str | Path | None = 'scene-export.vtksz',
format: Literal['zip', 'json'] = 'zip',
) str | Path[source]#

Export this plotter as a VTK.js OfflineLocalView file.

The exported file can be viewed with the OfflineLocalView viewer available at https://kitware.github.io/vtk-js/examples/OfflineLocalView.html

Parameters:
filenamestr | Path, optional

Path to export the file to. Defaults to 'scene-export.vtksz'.

formatstr, optional

The format of the exported file. Defaults to 'zip'. Can be either 'zip' or 'json'.

Returns:
str | Path

The exported filename.