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

Fix check for DISPLAY on PyQt5. #8149

Merged
merged 1 commit into from
Mar 19, 2017

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 25, 2017

This check avoids a fatal error when the DISPLAY environment variable is
not set using PyQt5, e.g.

MPLBACKEND=qt5agg DISPLAY= python -c 'from pylab import *; plot(); show()'

(The previous check only worked on PyQt4.)

This check avoids a fatal error when the DISPLAY environment variable is
not set using PyQt5, e.g.
```
MPLBACKEND=qt5agg DISPLAY= python -c 'from pylab import *; plot(); show()'
```

(The previous check only worked on PyQt4.)
@QuLogic
Copy link
Member

QuLogic commented Feb 26, 2017

This goes from hard crash to RuntimeError; is it supposed to keep working?

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Feb 26, 2017
@anntzer
Copy link
Contributor Author

anntzer commented Feb 26, 2017

It makes the behavior consistent across the Qt4 and Qt5 backends. See #1905 for the original motivation.

@anntzer anntzer changed the title Fix check for DISPLAY on PyQt5. [MRG] Fix check for DISPLAY on PyQt5. Mar 15, 2017
@QuLogic QuLogic changed the title [MRG] Fix check for DISPLAY on PyQt5. [MRG+1] Fix check for DISPLAY on PyQt5. Mar 19, 2017
Copy link
Member

@NelleV NelleV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NelleV NelleV merged commit bab0fa3 into matplotlib:master Mar 19, 2017
@QuLogic QuLogic changed the title [MRG+1] Fix check for DISPLAY on PyQt5. Fix check for DISPLAY on PyQt5. Mar 19, 2017
@anntzer anntzer deleted the DISPLAY-check-on-PyQt5 branch March 19, 2017 21:22
QuLogic pushed a commit to QuLogic/matplotlib that referenced this pull request Mar 27, 2017
@QuLogic
Copy link
Member

QuLogic commented Mar 27, 2017

Backported to v2.0.x as 26ffec5.

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

Successfully merging this pull request may close these issues.

4 participants