pyvista.Plotter.export_vtksz#

Plotter.export_vtksz(filename='scene-export.vtksz', format='zip')[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

The exported filename.