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 Crashes with matplotlib.pyplot Usage #733

Closed
xiezhipeng-git opened this issue Aug 5, 2024 · 3 comments
Closed

Jupyter Kernel Crashes with matplotlib.pyplot Usage #733

xiezhipeng-git opened this issue Aug 5, 2024 · 3 comments

Comments

@xiezhipeng-git
Copy link

Some specific details are available at the following link:
microsoft/vscode-jupyter#15834

@jupyter jupyter deleted a comment from chunqiaohu Aug 28, 2024
@ivanov
Copy link
Member

ivanov commented Aug 28, 2024

@xiezhipeng-git could you please produce the summary of those details here. I tried following what was reported but could not make sense of it. Please provide a minimal standalone example that reproduces the error you were seeing, as well as the error itself. Also, from a glance at the issue you linked, can you verify that the issue does not occur in a plain python shell (and it if works fine there, also try in an ipython shell)? It is possible that you are just running out of memory creating so many matplotlib plots

@xiezhipeng-git
Copy link
Author

xiezhipeng-git commented Sep 4, 2024

@ivanov
This is all the code.

import matplotlib.pyplot as plt
from IPython.display import clear_output
for i in range(5100):
    clear_output(wait=True)
    plt.figure()
    plt.plot([1,2], [1,2])
    plt.show()
    
    
    print(i)
    

But now I can't meet it
I don't know if it's because I switched to a new CPU. The original CPU crashed due to irregular blue screen crashes and was replaced and repaired
Previously, there was a 50% chance of an error. Now, I have tried 5 times and everything is fine

@ivanov
Copy link
Member

ivanov commented Sep 6, 2024

glad you got it fixed, @xiezhipeng-git - sounds like a hardware error and not a jupyter / matplotlib / ipythong bug. Will be closing this, but of course we can re-open if the symptoms come back for you or anyone else.

@ivanov ivanov closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants