-
-
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
Stopping script with Ctrl+C in the console is not working #8051
Comments
@ccordoba12 Is this not a duplicate of #8013 ? |
I think this is different and it has to do with not being able to stop Flask apps. |
I have the same problem on win10 python 3.7 even for simple scripts like:
on python 3.6 it works fine |
@talkaminker This isn't the same problem as the one reported above; the issue you are having is the same as the one I linked previously, #8013 . It has to do with third party dependency versions; try the solutions suggested over there which fixed it for the reporter on that thread. Thanks. |
Has anyone found a solution or workaround to this problem. I am scratching my head here to stop my python flask app on port 8080. |
For now I think the only possibility is to restart the kernel. We'll take a look at this in Spyder 4 to see if we can improve the situation. |
Same issue with ctrl + c in spyder console not stopping the windows api, when running flask apps. I typically ctrl + . as stated above or create a system exit by adding some failure code and wait for the refresh. |
Hello I am working on spyder for web application I am also facing same issue ctrl+c isn't helping to quite the current directory any help please how to resolve . That's my console saying:-
|
@impact27, any ideas about why KeyboardInterrupt is not working for web apps? I was also thinking that perhaps we could fix this with the improvements you made to interrupt the kernel in master of Spyder-kernels (not sure about it though). |
I'm very much not a WSGI/web server expert, but if I were to guess, either one or both of the following may occurring:
Then, when it is run again, it launches another set of them. |
Does that have anything to worry with application update 🤔🤔🤔 the sypder I am working version is 5.0.0 . |
Unlikely, but not impossible; you should test and confirm with the latest version, 5.3.2—5.0.0 is a year and a half out of date, and as the very first release of the 5.x series, contained a number of subsequently-fixed bugs. Also, your Spyder-Kernels version in your working environment is perhaps more important here than the Spyder version. |
Hey , thank you so much for helping as my system is Macos , it ain't returning results with ctrl+c , to quit console use **ctrl + . ** |
I haven't investigated this particular issue, but in general, handling
I would recommand restarting the kernel instead of using keyboard interrupt |
Or, to be clear, interrupted by the user when running from a standard |
I completely agree |
@SwethA99hub , could you run |
Hi
I am running the following dash script. Stopping the server with Ctrl-C in the console is not working on my Windows 10, Python 3.7.0 machine using spyder 3:
` # -- coding: utf-8 --
import dash
import dash_core_components as dcc
import dash_html_components as html
`
I replaced Version 3 by the development version 4 where Ctrl-C is working as expected.
Cheers
Renger
The text was updated successfully, but these errors were encountered: