Help Center/
ModelArts/
FAQs/
Notebook (New Version)/
Code Execution/
What Do I Do If a Notebook Instance Won't Run My Code?
Updated on 2025-09-08 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 a cell's execution is suspended or takes too long but you can still interact with the notebook page, click the button in the red box shown below. This will stop the execution of all cells and retain all variable spaces in the notebook instance.
Figure 1 Stopping all cells
- 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 Execution
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.