# Examples from pyvista.vtk_backend
# =================================

# The value depends on which build is installed, so this example is not run.
import pyvista as pv
pv.vtk_backend()

# Raise a clear error for a build that cannot support a feature:
if pv.vtk_backend() != 'vtk':
    msg = (
        f'This feature is not supported on the {pv.vtk_backend()} backend.'
    )
    raise RuntimeError(msg)

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code
