How to fix segfaulting error with pyvista version 0.34.1

If you are running (like me) the container in VS Code or something that is not jupyter lab, try this, that worked for my case:
https://fenicsproject.discourse.group/t/cannot-display-pyvista-plot-in-docker-container/8202/9