I'v had problems in the past with xvfb and was able to solve it using xvfb-run instead. Could you try that with: xvfb-run python -c 'import pyvista; pyvista.Sphere.plot(off_screen=True) Alternatively, you could start xvfb using start_xvfb. pyvista deleted a comment from github-actions...
If it is a headless environment, you may need to set up the display:sudo apt install xvfb #!/bin/bashset-xexportDISPLAY=:99.0exportPYVISTA_OFF_SCREEN=true which Xvfb Xvfb :99 -screen 0 1024x768x24>/dev/null2>&1&sleep 3set+xexec"$@" ...
from mpi4py import MPI import pyvista from dolfinx import mesh, plot pyvista.OFF_SCREEN = True print(pyvista.global_theme.jupyter_backend) domain = mesh.create_unit_square(MPI.COMM_WORLD, 8, 8, mesh.CellType.quadrilateral) tdim = domain.topology.dim pyvista.start_xvfb() domain.topology.cre...
Explore the GitHub Discussions forum for pyvista pyvista. Discuss code, ask questions & collaborate with the developer community.