-
-
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 has to wait 18 seconds before closing #8751
Comments
I created a pull request on Jupiter client: jupyter/jupyter_client#420 |
Ok, thanks a lot for your help @impact27! |
As a workaround, how bad would it be to not call stop_channels? |
I don't know and I wouldn't like to speculate about it because I don't know the Jupyter architecture that well. |
Closing because @impact27's PR was merged in jupyter-client. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the following line:
spyder/spyder/plugins/ipythonconsole/widgets/client.py
Line 500 in 0dff086
Spyder creates a thread that will close all the channels of kernel_client.
unfortunately, kernel_client has a heartbeat channel that only wakes up every 18 seconds. (kernel_client.hb_channel)
This means that the created thread will have to wait until a heartbeat is heard.
somehow if I replace this line by
self.shellwidget.kernel_client.shutdown()
spyder closes immediately.The text was updated successfully, but these errors were encountered: