Help Center/
ModelArts/
Troubleshooting/
DevEnviron/
Code Running Failures/
What Do I Do If a Notebook Instance Won't Run My Code?
Updated on 2024-04-30 GMT+08:00
What Do I Do If a Notebook Instance Won't Run My Code?
If a notebook instance fails to execute code, you can locate and rectify the fault as follows:
- If the execution of a cell is suspended or lasts for a long time (for example, the execution of the second and third cells in Figure 1 is suspended or lasts for a long time, causing execution failure of the fourth cell) but the notebook page still responds and other cells can be selected, click interrupt the kernel highlighted in a red box in the following figure to stop the execution of all cells. The notebook instance retains all variable spaces.
- If the notebook page does not respond, close the notebook page and the ModelArts console. Then, open the ModelArts console and access the notebook instance again. The notebook instance retains all the variable spaces that exist when the notebook instance is unavailable.
- If the notebook instance still cannot be used, access the Notebook page on the ModelArts console and stop the notebook instance. After the notebook instance is stopped, click Start to restart the notebook instance and open it. The instance will have preserved all the spaces for the variables that were unable to run.
Parent topic: Code Running Failures
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot