Dead Kernel Error message on my local machine

I keep getting the error message “The kernel appears to have died. It will restart automatically.” on my local machine when i tried running seaborn plot for the distribution of charges

Maybe the localhost server was not running properly, if thar was the problem it should have worked the next time you stop running the kernel and restart the Jupyter notebook again ,
Your Seaborn library is not working properly try uninstalling the current version and installing an older version of Seaborn in your pc ( Search for the steps in the internet )
There might be some error in the code which results dying of kernel A link to your notebook will be much helpful