PyVistaQt provides a Qt-based plotting backend for PyVista, enabling embedded 3D visualization in PyQt5/PySide2/PyQt6/PySide6 applications. Current version: 0.11.4. Release cadence: irregular, with occasional minor/patch updates.
pip install pyvistaqtVerified import paths — ran on the pinned version, not inferred.
Create a Qt window with a 3D view of a cube using the BackgroundPlotter.
Upgrade to Python 3.10+ or stay on pyvistaqt <=0.10.2.
Replace any 'MainWindow' usage with 'BackgroundPlotter'.
Set the Qt API via environment variable (e.g., os.environ['QT_API'] = 'pyqt5') before importing pyvistaqt, or install a Qt binding (PyQt5, PySide2, PyQt6, PySide6) first.
Remove `threaded` and set `off_screen=False` and `auto_update=True` for similar behavior.
Install a Qt binding: pip install PyQt5 (or PySide2, PyQt6, PySide6).
Install a Qt binding (e.g., pip install PyQt5) and/or set the QT_API environment variable before importing pyvistaqt.
Use BackgroundPlotter instead of MainWindow.
Set `plotter = BackgroundPlotter(off_screen=True)` or run with a virtual display (xvfb).