Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Code Running Failures/ Notebook Instance Failed to Run Code
Updated on 2025-06-06 GMT+08:00

Notebook Instance Failed to Run Code

If a notebook instance fails to run your code, you can locate and rectify the fault as follows:

  1. 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
  2. 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 already existed when the notebook instance was unavailable.
  3. 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 then open it. This notebook instance will also retain all variable spaces that existed when the notebook instance was unavailable.