Closed daniellivingston closed 5 years ago
solution in https://github.com/vtkiorg/vtki/issues/155
Solved by @banesullivan in vtkiorg/vtki#155. Thanks Bane!
The solution above is a work around right? Why is this issue closed?
I wouldn't consider it a "workaround." In order to use VTK (or many other graphics libraries) in a headless mode, you must set up the display configurations for that environment/machine as outlined in https://github.com/pyvista/pyvista/issues/155 and PyVista's docs
That type of configuration is out of scope for this feedstock as it has to do more with the machine. Also, even if there was a clean way to set up the headless display upon installation, it wouldn't last as the display has to be set up anytime the computer/environment is booted/started.
Isn't there a compile time option that can enable off-screen rendering as indicated in this post? Is it not possible to provide a version of VTK like this? Sorry if I misunderstood what's going on here as I'm not super familiar with the rendering portion of VTK.
Hm, thanks for sharing that blog post... that's actually something I didn't know about. Perhaps this is worth exploring and something I have been overlooking. As far as whether or not it would be possible to provide a version of VTK leveraging that in this feedstock is out of my knowledge at this time.
If you think this is worth exploring, I'd recommend reopening this issue to see if some of the maintainers here can chime in. I'd investigate this, but I'm currently low on bandwidth and will have to circle back in a while
I can't reopen this issue as I'm not the OP. I don't have time to investigate this either as I've setup Xvfb running in the background for now.
Another thing to note is that Paraview (which uses VTK) has a completely headless version available. So the rendering without X is definitely something worth looking into.
Thanks for bringing this back up, @shuhaowu - I'll keep all of this in mind for PyVista as it would definitely be applicable to many of our users!
Issue:
Given a Docker running Jupyter, I am trying to craft a Dockerfile around #20 in order to do notebook embedded renderings.
I consistently get an X error:
so clearly, VTK is not running headless.
The environment variable
VTK_WITH_OSMESA="True"
, Mesa is installed vialibgl1-mesa-glx libosmesa6-dev
andconda install --yes -c conda-forge mesalib
.Environment (
conda list
):Details about
conda
and system (conda info
):