Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run headless (without display) #553

Open
mducle opened this issue Oct 26, 2020 · 0 comments
Open

Ability to run headless (without display) #553

mducle opened this issue Oct 26, 2020 · 0 comments
Labels

Comments

@mducle
Copy link
Member

mducle commented Oct 26, 2020

At present any attempt to plot using the MSlice CLI on a system without a display (or running virtual desktop) results in a Qt error Could not connect to display or Could not connect to X server.

Whilst it is not possible to run Qt graphical components "headless" it is possible to run Matplotlib headless. Thus when not using the customised plot windows, it should be possible to use MSlice headless using the 'mslice' projection in standard Matplotlib.

However, currently the overloaded errorbar and pcolormesh methods in the MSlice projections explicitly assume that they are being invoked on the customised MSlice plot windows (which needs Qt). Thus they fail in headless environments.

For use in the ISIS autoreduction system to plot figures of the autoreduced data for a quick glance, it would be good to have MSlice able to run headless. At the moment a work-around is to extract the underlying Mantid raw_ws and to use the 'mantid' projection in Matplotlib to run the plot instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant