The python package
pyvistaqt extends the
pyvista through the usage of Qt.
Since Qt applications operates in a separate thread than VTK,
you can simultaneously have an active VTK plot and a non-blocking Python session.
$ pip install pyvistaqt
To install this package with
$ conda install -c conda-forge pyvistaqt
Once installed, use the
pyvistaqt.BackgroundPlotter like any PyVista
Create an instance of the
pyvistaqt.BackgroundPlotter and plot a
import pyvista as pv
from pyvistaqt import BackgroundPlotter
sphere = pv.Sphere()
plotter = BackgroundPlotter()
pyvistaqt is under the MIT license.
However, Qt bindings have licenses of their own.
pyvistaqt has used
pyqt5, which is subject
to the GPL license. See details at
Riverbank License FAQ.
pyvistaqt is transitioning to using
> QtPy is a small abstraction layer that lets you write applications using a single API call to either PyQt or PySide.
Please refer to the QtPy documentation to learn more.