-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Bugs: Can't interrupt kernel and the terminal shows Chinese words when starting #6186
Comments
Hello. It's not clear from your screenshot that kernel interrupts are not working. Keep in mind that they are intended to interrupt active cell operations. So if you're not executing any code at the time the interrupt button is selected, your screen will appear as though nothing happened. Try executing a 60-second sleep call, then hit the interrupt button after running the cell. You should see a traceback indicating the interrupt request was received and acted upon. Regarding the Chinese characters, you have a localized environment configured. You can see another example of this in your "shutdown kernel" screenshot. I don't recall how localization works on Windows, but these kinds of things are typically evident in your environment. From the terminal in which these characters appear, type |
@kevin-bates Thanks for your reply. I indeed want to interrupt the running cell and try to press that button. But nothing happened. The sign beside the cell remained As for the Chinese character, I guess it is because of the environment variable? But I forget where to set my configuration. Again thanks for your answer. |
@Beliefuture - thanks for the update and clarification.
You'll need to consult the platform (Windows) documentation (or google search) for how localization is configured.
Regarding the lack of interrupt, I see that you're using |
Sorry, sir. I am not so clear about what you said But I just can't interrupt the cell, the terminal just prints like
|
Hi @Beliefuture. Yeah, the "Kernel interrupted" message can be a little misleading since the server doesn't really know that the kernel processing was actually interrupted, only that it initiated the interrupt. A better message from the server would probably be: "Kernel interrupt initiated ...". At any rate, since nb_conda_kernels has an outstanding issue relative to interrupts and since you mention in #6212 that non "Python: [conda envs:xxx] prefix" kernels seem to work, could you please try interrupting a non-conda kernel? Again, I suspect this should be pursued from the |
Thanks for your reply, Sir @kevin-bates. Do you mean try it under the base environment like |
Describe the bug
I just can't interrupt the kernel when I press the button in the notebook. But I can shutdown the kernel with the
shutdown
button outside the notebook.Every time I run the terminal, it displays some Chinese words. But the program can run smoothly.
Desktop:
The text was updated successfully, but these errors were encountered: