Migrating Python 3.7 and 3.8 environments to Refresh 9 of Cloud Pak for Data 4.0

When you upgrade to Refresh 9 of Cloud Pak for Data 4.0, only the following Python runtimes are available:

You can select any of the default environments with Python 3.9 that are included in Watson Studio, or create custom environments that use Python 3.9. You can also continue using custom environments that use custom runtime images with Python 3.7 or 3.8, after you have performed a migration step that is detailed in the following section.

However, you can no longer select any default Python 3.7 or 3.8 environments as these are no longer included in Watson Studio, or start notebooks or JupyterLab, run jobs, or create custom runtime images using these Python versions. Existing custom environments in which you selected Default Python 3.7 or Default Python 3.8 as software version will also not work after you have upgraded.

What does this mean for existing Python notebooks and jobs?

After you have upgraded to Refresh 9 of Cloud Pak for Data 4.0:

Before you upgrade to Refresh 9 of Cloud Pak for Data 4.0, you must consider the following:

  1. Evaluate the library differences between the environment runtime you are currently using and the IBM Runtime 22.1 environment, and the implications for code changes that you would need to make.
  2. If you are on Cloud Pak for Data Refresh 7 and earlier, and you want to continue using a Default Python 3.7 or Default Python 3.8 runtime:

    1. Download the appropriate runtime configuration file. See Downloading the runtime configuration.
      • For Notebooks, use one of the following configuration files:
        • jupyter-py38-server.json
        • jupyter-py37-server.json
        • jupyter-py38gpu-server.json
        • jupyter-py37gpu-server.json
      • For Jupyterlab, use:
        • jupyter-lab-py38-server.json
        • jupyter-lab-py37-server.json
        • jupyter-lab-py38gpu-server.json
        • jupyter-lab-py37gpu-server.json
    2. Rename the runtime configuration, for example, to py38-cpd40-server.json.
    3. Upload the file to the Cloud Pak for Data cluster. See Step 7 in Uploading the changed configuration.
    4. Switch to using an environment with this image in your notebooks and jobs. For details, see Changing the environment of a notebook.
    5. Test run the notebooks and jobs.
    6. If they run successfully, you can upgrade to Refresh 9 of Cloud Pak for Data 4.0. Your custom environments with this change will be migrated.
  3. If you determined that your existing notebooks and job will work with the IBM Runtime 22.1 environment:

    1. Upgrade to Refresh 9 of Cloud Pak for Data 4.0.
    2. Go to your existing notebooks and jobs, and select the IBM runtime 22.1 environment.

Parent topic: Environments