The only prerequisite for installing PyVista is Python itself. If you don’t have Python yet and want the simplest way to get started, we recommend you use the Anaconda Distribution.
PyVista can be installed locally with conda or pip. If you’d prefer it, you can also run PyVista on the cloud using Google Colab or MyBinder. For more detailed instructions, see the installation guide below.
PyVista can be installed on several environments, including, but not limited to:
pip install 'pyvista[all]' jupyterlab
conda install -c conda-forge pyvista jupyterlab trame ipywidgets
You can then plot in Jupyter with either a static or interactive backend:
import pyvista as pv from pyvista import examples dataset = examples.download_lucy() dataset.plot(smooth_shading=True, color='white')
MyBinder, similar to Google Colab, allows you to run Jupyter notebooks on the cloud. Click on the link below to open up a MyBinder environment to run PyVista.
Visit the PyVista on Colab notebook to see PyVista in action. The minimum code to get PyVista running in a Colab environment is:
!apt-get install -qq xvfb libgl1-mesa-glx
!pip install pyvista -qq
pyvista.global_theme.notebook = True