Skip to content

Conversation

@bergtholdt
Copy link
Contributor

Fixes #398

@bergtholdt
Copy link
Contributor Author

Sad that this gets ignored completely.

@blink1073
Copy link
Contributor

@ccordoba12 does this change look reasonable to you?

@blink1073
Copy link
Contributor

@bergtholdt please understand that we are volunteers and not all of us are equally familiar with the code base.

"""Start a kernel with PyQt5 event loop integration."""
os.environ['QT_API'] = 'pyqt5'
if os.environ['QT_API'] not in ['pyqt5', 'pyside2']:
os.environ['QT_API'] = 'pyqt5'
Copy link
Member

Choose a reason for hiding this comment

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

I really don't understand this change. I mean, this

if os.environ['QT_API']

assumes that QT_API is already in the environment, which is not always the case.

And this

not in ['pyqt5', 'pyside2']

seems to assume that the only possible values of QT_API can be pyqt5 and pyside2, when they can also be pyqt and pyside.

@bergtholdt
Copy link
Contributor Author

@ccordoba12 yes, exactly! I asked the same thing in the original Issue #398 referenced at the top, which did not receive any comments.

@blink1073 please understand that I am also a volunteer myself and try to push fixes in my codebase to the central repository so others may benefit. Being ignored for 5 months just kills any motivation in going the extra mile to submit issues and provide pull requests.

@bergtholdt bergtholdt mentioned this pull request Oct 1, 2019
@bergtholdt
Copy link
Contributor Author

bergtholdt commented Oct 1, 2019

I removed the offending line completely

os.environ['QT_API'] = 'pyqt5'

In another pull request #444

I did not find any issues in qtconsole with the qt5 gui integration and matplotlib.

@bergtholdt bergtholdt closed this Oct 1, 2019
@Carreau Carreau added this to the no action milestone Jun 14, 2021
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.

os.environ['QT_API'] gets overwritten in event-loop. No pyside2 integration.

4 participants