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, with 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:
If you’re using
pip, then installation is just:
pip install pyvista
Install PyVista using the Anaconda Distribution:
conda install -c conda-forge pyvista
If you prefer working within a Jupyter environment, we recommend you install the following packages:
pip install jupyterlab pythreejs ipyvtklink panel
conda install -c conda-forge jupyterlab pythreejs ipyvtklink panel
You can then plot using Jupyterlab or Jupyter Notebook interactively with one of three backends:
import pyvista as pv from pyvista import examples dataset = examples.download_lucy() dataset.plot(smooth_shading=True, color='white')
import pyvista as pv from pyvista import examples pv.global_theme.jupyter_backend = 'panel' dataset = examples.download_lidar() dataset.plot(cmap="gist_earth")