aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
10.14k stars 6.78k forks source link

The kernel appears to have died. It will restart automatically error during example #818

Open petercinibulk opened 5 years ago

petercinibulk commented 5 years ago

I created a notebook instance on the console and used this example: tensorflow_abalone_age_predictor_using_layers_2019-07-23

When I restart the kernel run all I get the error, The kernel appears to have died. It will restart automatically. This happens when "from sagemaker.tensorflow import TensorFlow." I didn't change anything in the notebook just restarted the kernel and ran it.

JunLyu commented 4 years ago

Hi petercinibulk,

Thank you for using Amazon SageMaker. If you are still facing this issue you can try enabling debug logging for the kernel so they can see what is happening:

echo 'c.Application.log_level = 0' >> ~/.jupyter/jupyter_notebook_config.py
echo 'c.Session.debug = True' >> ~/.jupyter/jupyter_notebook_config.py
sudo restart jupyter-server
tail -f /var/log/jupyter.log

Let us know if there is anything else we can be an assistance of.

Thanks, Jun