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

Kernel Uninterruptible on Python 3.7 #310

Closed
spauka opened this issue Oct 29, 2018 · 4 comments
Closed

Kernel Uninterruptible on Python 3.7 #310

spauka opened this issue Oct 29, 2018 · 4 comments

Comments

@spauka
Copy link

spauka commented Oct 29, 2018

Kernels are uninterruptible in QtConsole using Python 3.7.

For example, the following code is run inside the terminal:

In [1]: import time

In [2]: while True:
   ...:     time.sleep(0.1)

following which I am unable to stop execution, either by pressing Ctrl-C or the "Interrupt current Kernel" menu item.

Running the same code in ipython in a console window succeeds in stopping execution.

This issue appears in the latest Spyder as well, and is reported here: spyder-ide/spyder#8013 but seems to be a QtConsole bug.

System Information

Windows 10
Python 3.7.1 (default, Oct 23 2018, 22:56:47) [MSC v.1912 64 bit (AMD64)]
IPython 7.1.1
ipykernel 5.1.0
qtconsole 4.4.2

To Reproduce failing version

conda create -n py37clean python=3.7
conda install qtconsole
jupyter qtconsole

To Reproduce working version 3.6

conda create -n py36clean python=3.6
conda install qtconsole
jupyter qtconsole
@ccordoba12
Copy link
Collaborator

@spauka, does this also happen in the Jupyter notebook?

@spauka
Copy link
Author

spauka commented Oct 29, 2018

@ccordoba12 Just tried it out in a notebook, and it does! The kernel is uninterruptible with both "Ctrl-C" and the various interrupt buttons.

Looks like the issue might run even deeper than qtconsole. Any idea what the source might be?

@pag
Copy link

pag commented Dec 24, 2018

This was fixed in the ipython repo last month: jupyter/jupyter_client#408

@ccordoba12
Copy link
Collaborator

Yes, that's correct.

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

No branches or pull requests

3 participants