How to stop Running Python Code












1















Im Running python code which runs continuously and i dont know how to stop the code can any one suggest me Thabks in Advance, im Running Code in Spyder
the Code is as below



while True:        # loop forever    
print('Hello')


Im simply printing the Hello continuously but i cant stop the code










share|improve this question




















  • 2





    close the console

    – Drako
    Dec 19 '18 at 7:15






  • 1





    Did you try Ctrl-C?

    – Mawg
    Dec 19 '18 at 7:37













  • Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

    – Mawg
    Dec 19 '18 at 7:39













  • actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

    – user975396
    Dec 19 '18 at 8:44











  • You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

    – DavidPostill
    Dec 19 '18 at 13:06
















1















Im Running python code which runs continuously and i dont know how to stop the code can any one suggest me Thabks in Advance, im Running Code in Spyder
the Code is as below



while True:        # loop forever    
print('Hello')


Im simply printing the Hello continuously but i cant stop the code










share|improve this question




















  • 2





    close the console

    – Drako
    Dec 19 '18 at 7:15






  • 1





    Did you try Ctrl-C?

    – Mawg
    Dec 19 '18 at 7:37













  • Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

    – Mawg
    Dec 19 '18 at 7:39













  • actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

    – user975396
    Dec 19 '18 at 8:44











  • You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

    – DavidPostill
    Dec 19 '18 at 13:06














1












1








1








Im Running python code which runs continuously and i dont know how to stop the code can any one suggest me Thabks in Advance, im Running Code in Spyder
the Code is as below



while True:        # loop forever    
print('Hello')


Im simply printing the Hello continuously but i cant stop the code










share|improve this question
















Im Running python code which runs continuously and i dont know how to stop the code can any one suggest me Thabks in Advance, im Running Code in Spyder
the Code is as below



while True:        # loop forever    
print('Hello')


Im simply printing the Hello continuously but i cant stop the code







windows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 19 '18 at 7:49









Mawg

1,06252650




1,06252650










asked Dec 19 '18 at 7:13









user975396user975396

111




111








  • 2





    close the console

    – Drako
    Dec 19 '18 at 7:15






  • 1





    Did you try Ctrl-C?

    – Mawg
    Dec 19 '18 at 7:37













  • Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

    – Mawg
    Dec 19 '18 at 7:39













  • actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

    – user975396
    Dec 19 '18 at 8:44











  • You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

    – DavidPostill
    Dec 19 '18 at 13:06














  • 2





    close the console

    – Drako
    Dec 19 '18 at 7:15






  • 1





    Did you try Ctrl-C?

    – Mawg
    Dec 19 '18 at 7:37













  • Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

    – Mawg
    Dec 19 '18 at 7:39













  • actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

    – user975396
    Dec 19 '18 at 8:44











  • You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

    – DavidPostill
    Dec 19 '18 at 13:06








2




2





close the console

– Drako
Dec 19 '18 at 7:15





close the console

– Drako
Dec 19 '18 at 7:15




1




1





Did you try Ctrl-C?

– Mawg
Dec 19 '18 at 7:37







Did you try Ctrl-C?

– Mawg
Dec 19 '18 at 7:37















Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

– Mawg
Dec 19 '18 at 7:39







Btw, since you seem to be new to Python, be sure to get a good IDE. In my opionion, you cannot beat the community edition of JetBrains' PyCharm Learn to use the debugger - it is your new best friend :-)

– Mawg
Dec 19 '18 at 7:39















actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

– user975396
Dec 19 '18 at 8:44





actually im Runinng the code in Spyder and i even tried ctrl+c but it didn't work but in IDE 3.6.5 ctrl+C is working but why it is not working for Spyder

– user975396
Dec 19 '18 at 8:44













You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

– DavidPostill
Dec 19 '18 at 13:06





You need to terminate the interpreter (in this case Spyder). See The stop execution button (red square) doesn't always stop execution (looped try statements) · Issue #4786 · spyder-ide/spyder

– DavidPostill
Dec 19 '18 at 13:06










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385806%2fhow-to-stop-running-python-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385806%2fhow-to-stop-running-python-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Brian Clough

Cáceres