-
Notifications
You must be signed in to change notification settings - Fork 70
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
unable to interrupt cell execution with a kernel from an external environment #180
Comments
Thanks to the deep analysis performed by Kevin Bates in jupyter/notebook#5985, it was identified that the problem is likely to stem from the
I hope, this information will help to make progress on fixing the issue. |
Let's call it more of a hunch. |
I will close this as stale but if we can get a reproducible test case we can re-open |
Description
This is a cross-issue, originally reported at jupyterlab/jupyterlab#8388. The steps to reproduce are also fully described there.
In short, when
nb_conda_kernels
is enabled, it's not possible to interrupt execution of cells from within the JupyterLab's interface if the kernel is not from the same env where JupyterLab is installed.I'm duplicating it here after a short discussion in #155. In addition to it, below is log from terminal, corresponding to the steps that reproduce the issue.
Logs
Launching external ipython kernel from the dropdown menu activated by
nb_conda_kernels
:Executing a for loop in a cell and trying to interrupt it by hitting stop button 2 times:
It had no effect, the loop continued to run and got fully exhausted with no interruption, no
KeyboardInterrupt
message appeared.Now switching to the original kernel the JupyterLab is from:
Again executing the for loop and hitting the stop button right after it started:
This time cell execution interrupts immediately as expected. I can see the
KeyboardInterrupt
message.Analysis
There seem to be a discrepancy between conda prefix and actually used kernel, which is from a different environment. Not sure if it matters, though.
The text was updated successfully, but these errors were encountered: