Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Code Running Failures/ What Do I Do If No Kernel Is Displayed After a Notebook File Is Created?
Updated on 2024-04-30 GMT+08:00

What Do I Do If No Kernel Is Displayed After a Notebook File Is Created?

Symptom

After a notebook file is created, "No Kernel" is displayed in the upper right corner of the page.

Possible Causes

The code.py file in the work directory conflicts with the name of the import code file on which the kernel depends.

Solution

  1. View the latest log file starting with kernelgateway in /home/ma-user/log/ and search for the logs near Starting kernel. If the stack similar to the following is displayed, the possible cause is that the name of the code.py file in the work directory conflicts with the name of the import code file on which the kernel depends.

  2. To resolve this issue, rename the code.py file in the work directory.

    code.py and select.py are typically prone to conflict.