Skip to content
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 console - Unable to interrupt running program with stop button #12640

Closed
jacobm3 opened this issue May 7, 2020 · 4 comments
Closed

Spyder console - Unable to interrupt running program with stop button #12640

jacobm3 opened this issue May 7, 2020 · 4 comments
Assignees
Labels

Comments

@jacobm3
Copy link

jacobm3 commented May 7, 2020

Description

What steps will reproduce the problem?

import time
time.sleep(10)

The red "stop" button above the IPython terminal window will not stop this code. I'm able to interrupt that code with Ctrl-C if I run it manually from iPython in the conda shell.

Versions

  • Spyder version: 4.1.2
  • Python version: 3.7.7
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.4.1 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.5.0 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.10 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.3 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.0.3 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  0.29.17 (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)
@jacobm3 jacobm3 changed the title Unable to interrupt running program in Sypder console Spyder console - Unable to interrupt running program with stop button May 7, 2020
@ccordoba12
Copy link
Member

@dalthviz, could you reproduce this on Windows?

@jacobm3
Copy link
Author

jacobm3 commented May 7, 2020

Confirmed the stop button works with a fresh install of Anaconda/Spyder in Ubuntu.

I was able to reproduce the problem on a different Windows 10 machine.

Following the troubleshooting instructions here:
https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ#standard-approach-to-isolating-problems

The problem exists in a bare Jupyter QtConsole. I'm not able to Ctrl-C break time.sleep() there. It runs until the sleep call times out.

@ccordoba12
Copy link
Member

Ok, thanks for the extra check. There's some work right now (not by us) to make this work correctly on Windows.

@jacobm3
Copy link
Author

jacobm3 commented May 7, 2020

In case anyone else gets stuck on this behavior in Spyder, the corresponding issue in Jupyter-QtConsole can be seen here:
jupyter/qtconsole#410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants