I had installed VS codes and Docker Desktop in windows 10 2019 LTSC. https://fenicsproject.org/download/
I followed the steps in the download page to pull dolfinx.
I can use dolfinx with Jupyter notebook in the browser but have been struggling with installing pyvista. The kernel in the browser will always crash when I try the example from the documentation.
I repull the dolfinx image to create a container. I found that pyvista is not included in the docker image.
After I installed the pyvista package, I noticed this error when testing the introductory demo demo:
No results were shown from the demo but a warning message:
WARNING:py.warnings:/usr/local/lib/python3.9/dist-packages/pyvista/plotting/plotting.py:115: 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()
WARNING:py.warnings:/usr/local/lib/python3.9/dist-packages/pyvista/plotting/plotting.py:115: 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=
2022-04-25 19:09:12.644 ( 5.063s) [ 134DFC0]vtkXOpenGLRenderWindow.:464 ERR| vtkXOpenGLRenderWindow (0x4208c30): bad X server connection. DISPLAY=
Error: Canceled future for execute_request message before replies were done
at t.KernelShellFutureHandler.dispose (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:1204175)
at /root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:1223227
at Map.forEach ()
at v._clearKernelState (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:1223212)
at v.dispose (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:1216694)
at /root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:533674
at t.swallowExceptions (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:913059)
at dispose (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:533652)
at t.RawSession.dispose (/root/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:537330)
at processTicksAndRejections (node:internal/process/task_queues:96:5)