export_html

Plotter.export_html(filename)

Export this plotter as an interactive scene to a HTML file.

Parameters
filenamestr

Path to export the html file to.

Notes

You will need ipywidgets and pythreejs installed for this feature.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> mesh = examples.load_uniform()
>>> pl = pyvista.Plotter(shape=(1,2))
>>> _ = pl.add_mesh(mesh, scalars='Spatial Point Data', show_edges=True)
>>> pl.subplot(0,1)
>>> _ = pl.add_mesh(mesh, scalars='Spatial Cell Data', show_edges=True)
>>> pl.export_html('pyvista.html')