-
Notifications
You must be signed in to change notification settings - Fork 294
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
Is the kernel error being reported correct (i.e. the most useful?) #8060
Comments
I have some work (pending PRs branches from a week or so ago) that'll address this. waiting for debt week to fix them. Hence assigning to myself. |
FYI @greazer we have some other suggestions on what we can do with these errors (tracked here #7902 & #7846 (comment)). TLDR: We found that re-installing ipykernel, pyzmq and a few other packages resolves the kernel startup. |
I think notifying the user immediately that the kernel died instead of displaying an error message would be better (much like what Jupyter does). |
@greazer I think #7399 is relvant.
FYI - When using remote jupyter or local kernels where raw kernels don't work, kernels automatically restart. I.e. this error is only visible when using raw kernels in local scenraios. |
Testing:
import IPython
app = IPython.Application.instance()
app.kernel.do_shutdown(True)
import os
os.getpid()
|
See the following image. The kernel (interpreter) I selected apparently is missing access to win32api.dll somehow. Yet the error reported is a much more nebulous and late-to-the-party type message: "Cannot execute code, session has been exposed".
I think we have code to try and display to the user a better error message when a kernel can't be started, but are we getting the right one?
The text was updated successfully, but these errors were encountered: