Dear Karl,
I understand that the message is annoying if it occurs multiple times. However, the fact that it is there is deliberate; it is printed when Pyzo detects that a mainloop is being started. Pyzoâs GUI integration makes such a call non-blocking, which can cause problems, which will be extremely annoying if you donât understand the situation.
Instead of removing it completely, there might be other ways to relief your pain. One would be an environment variable to disable the message. Another could be to only show the message once per âsessionâ. You mention that you get it with âevery matplotlib.pyplot.show()â, are these multiple calls in a single session (as in not restarting the kernel)?
I understand that in 2016, the Pyzo folks are trying to unlink the IDE from the actual Python environment, but the previous method of simply putting everything together works best for newbies
I agree that one bundle is easier to get started. However, there were several problems with that approach:
- Messing up the env (e.g. uninstalling PyQt) breaks the IDE.
- There have been several cases where seemingly simple env updates broke the IDE.
- Users are less aware of the env and what conda is.
- You cannot update your env, or your IDE without also updating the other.
- Last, but not least: it cost me a ton of extra work.
I tried to make it as smooth and clear as possible for user to install the IDE and environment. Iâm happy to hear about ideas to improve things here though!
Regards,
Almar
From: Karl Rudnick
Sent: 14 November 2016 22:24
To: Pyzo
Cc: ***@gmail.com
Subject: Re: [Pyzo] Note on using QApplication.exec_():
I could not live with this annoying message so I upgraded my pyzo2014a to pyzo2015a via pyzo_distro-2015a.win64.zip at http://test.pyzo.org/downloads.html. I understand that in 2016, the Pyzo folks are trying to unlink the IDE from the actual Python environment, but the previous method of simply putting everything together works best for newbies, especially if you're holding someone's hand to convince them that they might be able to live without Matlab. At the very least, you should fully test before releasing this as a stable Matlab "equivalent." Else, people will be turned off and won't come back.
Regards,
Karl Rudnick
On Sat, Nov 12, 2016 at 4:14 PM, <***@gmail.com> wrote:
So, how can this get fixed or should we revert to earlier versions of IEP? I'm trying to walk someone through how python can replace matlab. I'm using pyzo, and this just makes things completely messy. My code worked fine in pyzo2014a. I have a ton of plotting things using matplotlib and now every matplotlib.pyplot.show() mixes this useless warning with the shell output text from all my programs. It's easy to see where this is in the IEP source. Look in iep.iepkernel.guiintegration, guiintegration.py
# Qt has its own message
mainloopWarning_qt = """
Note on using QApplication.exec_():
The GUI event loop is already running in the IEP kernel, and exec_()
does not block. In most cases your app should run fine without the need
for modifications. For clarity, this is what the IEP kernel does:
- Prevent deletion of objects in the local scope of functions leading to exec_()
- Prevent system exit right after the exec_() call
""".strip()+"\n"
Post by w***@gmail.comIf it's something I should worry about
Â
No. Itâs mostly to warn people who use `sys.exit(app/exec_())` and are confused about what happens.
Â
Â
Post by w***@gmail.comif there is some way of suppressing it? It is getting in the way of my text output
Â
Currently no. But should be easy to add. Made an issue for it: https://github.com/pyzo/pyzo/issues/418
Â
Regards,
 Almar
Â
Â
Â
Sent: 01 August 2016 12:19
To: Pyzo
Â
Â
Â
The GUI event loop is already running in the pyzo kernel, and exec_()
does not block. In most cases your app should run fine without the need
- Prevent deletion of objects in the local scope of functions leading to exec_()
- Prevent system exit right after the exec_() call
Â
Â
1) If it's something I should worry about and
2) if there is some way of suppressing it? It is getting in the way of my text output
Â
Thanks
Â
Will
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
For more options, visit https://groups.google.com/d/optout.
Â
--
You received this message because you are subscribed to a topic in the Google Groups "Pyzo" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyzo/BGLZtX1lz74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.