-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder 5.2.1 stuck connecting to kernel when using the Tk backend on Windows #17024
Comments
The IPython console launches if I unninstall matplotlib. |
Hey @trierweiler, thanks for opening this issue! Are you also seeing the error you reported in #16765 (comment)? |
Please also describe the steps you followed to
|
I observed something similar (see spyder-ide/spyder-kernels#347). Having the backend set to "Automatic" and not having pyqt5 installed, or choosing "Tkinter" as backend causes the console to be stuck on "Connecting to kernel...". @trierweiler Have you tried changing backend under Tools>Preferences>IPython console>Graphics and starting a new console, in case the behavior is similar? |
Thank you, it solved the problem. I installed pyqt5 and chose "Automatic"
instead of "Tkinter" as backend.
…On Wed, Dec 15, 2021 at 9:42 AM Reinert Huseby Karlsen < ***@***.***> wrote:
I observed something similar (see spyder-ide/spyder-kernels#347
<spyder-ide/spyder-kernels#347>). Having the
backend set to "Automatic" and not having pyqt5 installed, or choosing
"Tkinter" as backend causes the console to be stuck on "Connecting to
kernel...". @trierweiler <https://github.com/trierweiler> Have you tried
changing backend under Tools>Preferences>IPython console>Graphics and
starting a new console, in case the behavior is similar?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17024 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMDJIFKUQRPVLUUE4IWTSTURCELXANCNFSM5KCIYOWA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Gabriel Trierweiler Ribeiro
|
Running "%matplotlib tk" in an ipykernel console results in:
So it is likely that the tk eventloop is broken in ipykernel since #632 |
Thanks @impact27 for your help with this! It seems the fix is relatively simple (just running synchronously the |
Well you can't because then the loops would be nested. Unless you use https://github.com/erdewit/nest_asyncio. But that might be a hard sell for ipykernel. I think the entrire tk eventloop has to be rewritten. THe solutions I see are to:
|
I was thinking to use that |
I opened ipython/ipykernel#830 |
Thanks a lot @impact27! |
Description
What steps will reproduce the problem?
Using Win10.
Downloaded Spyder 5.2.1 from spyder-ide.org
Versions
Dependencies
The text was updated successfully, but these errors were encountered: