I can't generate graphs."The kernel appears to have died"

asked 2022-04-30 01:37:42 +0200

jvg21352 gravatar image

I have installed Sage on my Windows 10 machine

SageMath version 9.3, Release Date: 2021-05-09                     
Using Python 3.7.10.

I tried to plot something simple like


I received this message in Jupyter Notebook:

Kernel Restarting.
The kernel appears to have died. It will restart automatically.

And this message SageMath 9.3 Notebook Server

Unhandled SIGSEGV: A segmentation fault occurred. 
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.

[I 18:19:09.280 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
WARNING:root:kernel 7bc88a4e-b9a1-488d-bbe6-fa359a6758ab restarted

I have the same problem using matplotlib , for example:

import matplotlib.pyplot as plt
import numpy as np
t = np.linspace(0,1,10)
edit retag flag offensive close merge delete