Closed kmdouglass closed 5 years ago
I'm not familiar with forwarding X from within containers spawned from these images or using mayavi. I've marked this question as help wanted in case someone in the community here has solved this before.
We're starting to experiment with a general Q&A section on https://discourse.jupyter.org/c/questions to see if cross-technology questions like this one catch more attention from a broader community audience. You might try re-posting your question over there to see if someone with more experience in Mayavi can help.
I'm going to close this issue since it has been idle for some time now. If you do post the question again on the Discourse site, feel free to leave a link in a comment here for those that happen upon this closed issue.
@kmdouglass did you ever solve this issue. I am seeing same issue on my end and I haven't I didn't find any work around.
@mtkilic were you? I have the same issue too ;-(
Problem description
I am unable to get Mayavi working in the Jupyter Docker images. The container is set up to use my host X server as the window system. Furthermore, I can import the mayavi package inside a notebook. However, the notebook kernel crashes when actually rendering a plot.
I realize this problem covers a broad range of topics, from Docker to OpenGL, so I am not quite sure where the best place to ask would be. Any pointers would be appreciated.
Thanks for the help!
What docker image you are using?
jupyter/minimal-notebook:03b897d05f16
What complete docker command do you run to launch the container (omitting sensitive values)?
I use the
socat
command to expose the UNIX socket for my host display to TCP port 6000. The Docker container's DISPLAY environment variable is then set to my host's IP address and uses device number '0'.What steps do you take once the container is running to reproduce the issue?
What do you expect to happen?
I expect to see a 3D plot in the Jupyter notebook.
What actually happens?
The kernel dies due to a segmentation fault and the following error:
The third line,
mlab.test_plot3d()
raises the error. The first two are fine.Dockerfile
OpenGL information
Host machine
Docker container
Note that I actually have the Mesa 18.0.5 Ubuntu packages installed, so I am guessing that the OpenGL version string is reporting the Mesa version used by my host.
Pip requirements.txt
Additional information
[SeatDefaults]
:xserver-command=X -core +iglx
. I am not actually certain how to verify that X was launch with the +iglx flag.