question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stop button in the IPython console is not working with Python 3.7 on Windows

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I use the anaconda 5.3,and I update all in the conda(conda update --all) And I found the bug in the spyder,Whether or not I upgrade My English is Terrible,so… I don’t know if I have clearly expressed my question.

like this code: for i in range(0,10000): print(i)

I click the button of stop the current command(the red one),but it doesn’t work

What steps reproduce the problem?

  1. run .py
  2. Run script will run all the time
  3. Spyder can’t stop until finish

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 3.3.1
  • Python version: 3.7.0
  • Qt version: QtConsole 4.4.1
  • PyQt version: IPython 7.0.1
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:57 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
great-wide-opencommented, Dec 20, 2018

Should be fixed by #8337 In the above fix, it instructs to set close_fds=False. Where/how do you make this change?

Nevermind. Found that you perform the following in your Spyder environment conda install jupyter_client=5.2.4

1reaction
minrkcommented, Dec 10, 2018

jupyter-client 5.2.4 is released with the fix, too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder's stop button on console not working on Windows and ...
(Spyder maintainer here) A problem with the stop button not working on Windows (which seems the you're using) and Python 3.7 was fixed...
Read more >
IPython Console — Spyder 5 documentation
Spyder showing opening a new Ipython Console. From the same menu, you can stop currently executing code with Interrupt kernel, clear a console's...
Read more >
Changelog — Python 3.11.1 documentation
gh-99729: Fix an issue that could cause frames to be visible to Python code as ... gh-93858: Prevent error when activating venv in...
Read more >
Tips and Tricks — Blender Python API
If the script runs for too long or you accidentally enter an infinite loop, Ctrl - C in the terminal ( Ctrl -...
Read more >
Invalid Syntax in Python: Common Reasons for SyntaxError
The solution to this is to make all lines in the same Python code file use either tabs or spaces, but not both....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found