{tools}[foss/2020a] Change default bitmaptype for IRkernel to cairo#11645
Conversation
…or headless nodes, since otherwise, without X11, you run into IRkernel/IRkernel#388
|
@boegelbot please test @ generoso |
|
@Micket: Request for testing this PR well received on generoso PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 724611570 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
Going in, thanks @casparvl! |
(created using
eb --new-pr)I ran into this issue: IRkernel/IRkernel#388
At least two more people (@zao and
eylenth) encountered this issue as well.There are two options to run
IRkernelon headless nodes: run anXvfbso that thepngdevice can still use theXlibbitmaptype, or change the default bitmaptype tocairo. The latter makes most sense to me, since the cairo bitmaptype generally produces nicer plots to (e.g. can use TrueType fonts).To do that, the kernelspec should read
instead of
{"argv": ["R", "--slave", "-e", "IRkernel::main()", "--args", "{connection_file}"],
"display_name":"R",
"language":"R"
}
i.e. it should run the
options(bitmapType='cairo')before starting the actual kernel.Since running IRkernel on headless nodes is quite a common use case in the EasyBuild community, and since I've heard from @zao and
eylenththat they hit the same issue, it makes sense to me to 'fix' this in the EasyConfig. I do that by addingTo the
postinstallcmds(which are already used to 'install' the kernelspec).We can discuss if this also needs to be backported to older EasyConfigs, but I think the most important thing is that we adopt this in future versions.