How to fix segfaulting error with pyvista version 0.34.1

The reason for this segfault is that you can’t run gui applications by default inside a docker container. This is what is meant by

This provides a detailed description of how one might go about enabling gui applications to be run inside a docker container.

If you happen to use Ubuntu (it may also work for some other linux operating systems), following this post allowed me to use PyVista from within a docker container, without using JupyerLab. Note: I use Ubuntu 20.04.

Alternatively, you can use PyVista from within a docker container through JupyterLab, see here . I haven’t actually tried this myself but should work well.