Open drammock opened 2 weeks ago
I think we should document somewhere that working 3D graphics are needed, and if people are in headless mode they can set up and use xvfb-run
.
I think we should document somewhere that working 3D graphics are needed, and if people are in headless mode they can set up and use
xvfb-run
.
SGTM. WDYT about also adding a --no3d
flag or similar, to skip steps that require 3d plotting (and/or fall back to MPL brain plots)? I don't have a strong desire for this, just wondering about systems where getting xvfb might be difficult or time consuming
I'm surprised we depend on 3D rendering, we used to have support for MPL-based Brain plotting at one time
Either we removed this, support was dropped from MNE, or we simply only have this in a few steps? 🤔
I think we should try to keep 3d. The mpl brain viewer is not very good compared to the 3d version. And we need 3d for source alignment plots anyway (there is no 2d alternative).
Maybe instead of a command line option we can make it easier/clearer how to use xvfb or alternatively vtk osmesa build?
I'm fine with a documentation-based solution to this
I'm running the pipeline on a remote server, in
tmux
. My config file has the defaultinteractive=False
and yet I get the errorCannot connect to a valid display
. Is that expected? I'd assumed it would use xvfb automatically in such cases. The error arises inreport.add_trans
, called from_04_make_forward.py
. Here's an approximation of a traceback (just pushingu
in pdb until I hit MBP code):