Troubleshooting Jupyter Notebook Kernel Issues

  • Last updated on July 7, 2023 at 11:19 PM

If the Jupyter Kernel suddenly dies or restarts, it could either be due to an infinite loop, excess output, or a system issue on our end.

Infinite Loop

Please check for infinite loops in the notebook. Check the running code cell that has [*] before the kernel crash; if it contains a loop, think through the loop logic and figure out how that loop is supposed to end. If a critical logic that is necessary to end the loop is missing, please fix it.

Excess Output

The kernel can crash if the guided project is generating much output. To prevent this issue, please remove any code that unnecessarily prints much text. For example, printing all values in a large dataset may cause the kernel to fail. If there is a need to explore the dataset, try to print the first few or last few rows.

System Issue

Occasionally our system may experience some hiccups and may cause the kernel to fail without any apparent reason. If the issue persists despite addressing the previous two reasons, please submit a bug report to us.