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:
IBM Runtime 22.1 on Python 3.9(with and without GPU)JupyterLab with IBM Runtime 22.1 on Python 3.9Default Spark 3.0 & Python 3.9
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:
- The
Default Python 3.7andDefault Python 3.8environments are no longer available. Notebooks and jobs that use these environments will not run. - Custom environments with
Default Python 3.7orDefault Python 3.8as software version will be migrated, but all notebooks and jobs associated with these environments will not run. - Custom environments that you created based on custom runtime images will still be valid. Notebooks and jobs associated with these environments will still run.
Before you upgrade to Refresh 9 of Cloud Pak for Data 4.0, you must consider the following:
- Evaluate the library differences between the environment runtime you are currently using and the
IBM Runtime 22.1environment, and the implications for code changes that you would need to make. -
If you are on Cloud Pak for Data Refresh 7 and earlier, and you want to continue using a
Default Python 3.7orDefault Python 3.8runtime:- Download the appropriate runtime configuration file. See Downloading the runtime configuration.
- For Notebooks, use one of the following configuration files:
jupyter-py38-server.jsonjupyter-py37-server.jsonjupyter-py38gpu-server.jsonjupyter-py37gpu-server.json
- For Jupyterlab, use:
jupyter-lab-py38-server.jsonjupyter-lab-py37-server.jsonjupyter-lab-py38gpu-server.jsonjupyter-lab-py37gpu-server.json
- For Notebooks, use one of the following configuration files:
- Rename the runtime configuration, for example, to
py38-cpd40-server.json. - Upload the file to the Cloud Pak for Data cluster. See Step 7 in Uploading the changed configuration.
- Switch to using an environment with this image in your notebooks and jobs. For details, see Changing the environment of a notebook.
- Test run the notebooks and jobs.
- 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.
- Download the appropriate runtime configuration file. See Downloading the runtime configuration.
-
If you determined that your existing notebooks and job will work with the
IBM Runtime 22.1environment:- Upgrade to Refresh 9 of Cloud Pak for Data 4.0.
- Go to your existing notebooks and jobs, and select the
IBM runtime 22.1environment.
Parent topic: Environments