Kernel appears to have died

I have Jupyterlab version 3.1.18
When I want to run the last section of my code to plot the results I get the message “Kernel appears to have died”.
I don’t know whether it’s a bug or not.
I’ve tried to update “numpy” again as stated in Stackoverflow but the problem still persists.
Could anyone solve this problem?