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

problem submitting a job that creates figures #5

Open
cod3licious opened this issue Oct 2, 2011 · 3 comments
Open

problem submitting a job that creates figures #5

cod3licious opened this issue Oct 2, 2011 · 3 comments

Comments

@cod3licious
Copy link

when submitting a job to execute a python script that uses matplotlib to create figures, I get the error "Unable to access the X Display, is $DISPLAY set properly?".
I use NX and submitted the job with qsub -V.
$DISPLAY was first 50002.0 but setting "export DISPLAY=ba3.mit.edu:50002.0" did not solve anything.

@mibr-admin
Copy link

according to this:

http://matplotlib.sourceforge.net/faq/howto_faq.html#generate-images-without-having-a-window-popup

you want to use a different backend to generate the images so that a X window isn't required.

-matt

@satra
Copy link
Contributor

satra commented Oct 5, 2011

this is not a python specific issue. might be more of an NX specific issue. try launching xeyes from a qsub -VI interactive session.

@cod3licious
Copy link
Author

it works if I do this: matplotlib.use('Agg') whenever I log onto mh21 with qsub -I -l host=mh21. Haven't tried actually submitting jobs though.

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

No branches or pull requests

3 participants