Help Center/ ModelArts/ FAQs/ ModelArts Standard Images/ How Do I Set the Default Kernel?
Updated on 2025-08-28 GMT+08:00

How Do I Set the Default Kernel?

If you want to open a notebook instance with your custom kernel as the default one, do as follows:

Solution:

  1. Run the following command on the Terminal to specify environment variables in the image:
    # python-3.7.10 indicates the kernel to be set.
    export KG_DEFAULT_KERNEL_NAME=python-3.7.10
  2. Click More in the Operation column and select Save Image. After the image is saved, restart the notebook instance.