Install in Jupyterhub with pyvista

Hi,

We are trying to set up a Jupyterhub for teaching purposes.

We have installed fenicsx but we still have issues with pyvista output. We get the following error, related to Xserver installation. Has anyone hints for our IT department on how to solve?

Error when executing pyvista.start_xvfb() :

Error displaying widget: model not found

which we suppose is related to the warning:

WARNING:py.warnings:/opt/tljh/user/envs/fenicsx-fracture/lib/python3.10/site-packages/pyvista/plotting/plotter.py:149: UserWarning:
This system does not appear to be running an xserver.
PyVista will likely segfault when rendering.
 
Try starting a virtual frame buffer with xvfb, or using pyvista.start_xvfb()
 
 warnings.warn(
 
ERROR:root:bad X server connection. DISPLAY=
2023-09-25 11:23:16.793 (   4.589s) [        F7C87740]vtkXOpenGLRenderWindow.:464    ERR| vtkXOpenGLRenderWindow (0x56092829e350): bad X server connection. DISPLAY=

Details about pyvista installation:
image003