Overview

PyPI conda-forge Azure Pipelines MIT License

The python package pyvistaqt extends the functionality of 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.

_images/qt_multiplot.png

pyvistaqt BackgroundPlotter

Getting Started

Installation using pip is:

$ pip install pyvistaqt

To install this package with conda run:

$ conda install -c conda-forge pyvistaqt

You can also visit PyPI or GitHub to download the source.

Once installed, use the pyvistaqt.BackgroundPlotter like any PyVista plotter.

Brief Example

Create an instance of the pyvistaqt.BackgroundPlotter and plot a sphere.

import pyvista as pv
from pyvistaqt import BackgroundPlotter

sphere = pv.Sphere()

plotter = BackgroundPlotter()
plotter.add_mesh(sphere)

License

pyvistaqt is under the MIT license. However, Qt bindings have licenses of their own.

Historically, pyvistaqt has used pyqt5, which is subject to the GPL license. See details at Riverbank License FAQ.

pyvistaqt is transitioning to using qtpy

> 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.