Dead Kernal and restart

I’m using jupyter Notebook and the kernel keep crashing every time I run specified code like TensorFlow

See the second paragraph of my reply here because it sounds like a memory problem and you’ll learn more / have less overhead by running it directly in Python as a script.