-
Notifications
You must be signed in to change notification settings - Fork 297
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
Cannot restart kernel after kernel dies #7167
Comments
Follows a quick video to demonstrate this behavior. |
Thanks for filling this issue, I'm and to replicate this at my end. |
Thank you. Let me know if you need more information. |
As a temporary work around, you can close the notebook and re-open it, that will work. |
That's great! Thank you very much, |
Hi, I am facing the same issue. Even if I close and re-open the notebook, the error message appears again at the same cell. Some thoughts: I think what causes the issues is that I am trying to process a large amount of data. When running the same code but with subsets of my dataset, it works normally. Are there any solutions yet? |
Sorry I wasn't able to get to this, but will be looking into fixing this soon. |
No worries at all. Thanks for taking the time to answer! |
I'm not sure this is the same problem or not. I get this error when some error happens in my code and instead of reporting the stack trace, the cell finishes successfully. But I'm not able to run any cell afterward and get the message included above. |
@momt99 Please could you file a separate issue. looks like you have some code in the cell that's causing the kernel to crash/die. |
Closing this issue as this has been fixed, and the fix is now avaialble in the insiders version of the extension (install VS Code insiders to get the insider version of the extesnion). |
@DonJayamanne Thank you for the great work! |
@IvanPalm |
I just got back to the matter to file the issue but I could not replicate the error. |
I have the same issue. |
@Wang-Chbo |
I was able to restart a kernel after it had died. Both from the original repro as well as from a separate one that killed the kernel externally. |
Environment data
VS Code version: Version: 1.59.0
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:14:40.191Z (1 wk ago)
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Darwin x64 20.6.0
Jupyter Extension version (available under the Extensions sidebar): v2021.8.1195043623
Python Extension version (available under the Extensions sidebar): v2021.8.1105858891
OS (Windows | Mac | Linux distro) and version: MacOS 11.5.1
Python and/or Anaconda version: Python 3.9.5 (also tested with 3.9.6, 3.8.10 and 3.7 - same issue)
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): tested with conda and venv
Jupyter server running: The problem happens both locally and in a remote setup (remote VM)
Expected behaviour
I need to restart my kernel after a
pip install
.I need to execute the following code and restart my kernel, without loosing connectivity to it.
Actual behaviour
After executing the
app.kernel.do_shutdown(True)
I receive the following message:If I restart the kernel using the "Restart" button from the UI interface, I still receive the same message.
I can only get my environment running again if I select another kernel and then select the original kernel again.
Steps to reproduce:
print('Hello World')
to make sure it is workingprint('Hello world')
to see the error message.Logs
Please see the attached files.
kernel_restart_OK.txt
cell_exec_FAIL.txt
requirements.txt
The text was updated successfully, but these errors were encountered: