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

Jupyter kernel cannot be interrupted #19

Closed
markolenik opened this issue Feb 19, 2020 · 4 comments
Closed

Jupyter kernel cannot be interrupted #19

markolenik opened this issue Feb 19, 2020 · 4 comments

Comments

@markolenik
Copy link

Description

When sending code from jupyter-vim to a jupyter kernel, the kernel execution cannot be manually interrupted (e.g. by pressing Ctrl-C in the qtconsole). The only way to interrupt kernel is to restart it.

Reproduce bug

To replicate run the infinite loop below and try interrupting the kernel with Ctrl-C in the qtconsole

import time
while True: 
    print('----------------')
    time.sleep(0.5)

Versions

I have the following setup

  • nvim: 0.5.0
  • jupyter core: 4.5.0
  • qtconsole: 4.3.1
  • jupyter client: 5.2.4

@wmvanvliet
Copy link
Collaborator

ah, good catch! Maybe this should be fixed on the QtConsole end. Having jupyter-vim have an interrupt kernel command is certainly possible, not would not be my first choice for an elegant solution. It's more intuitive for QtConsole to interrupt the kernel.

@markolenik
Copy link
Author

markolenik commented Feb 20, 2020

The same bug occurs with jupyter console. I've submitted an issue to QtConsole: jupyter/qtconsole#410

@wmvanvliet
Copy link
Collaborator

Great, thanks! We'll follow it up there.

@ilkerhk
Copy link

ilkerhk commented Nov 15, 2020

I understand that this is a jupyter bug and it should be solved in jupyter side.
However, in qtconsole it is possible to interrupt a running code if it is not coming from a remote connection. So, it is possible that this bug might not be a high priority for jupyter team.

On the other hand, in jupyter-vim, the only way to interrupt a running code is to kill the kernel. I think, this makes jupyter-vim unusable for many users such as me.
Otherwise, this is a very nice plugin.

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