Path: blob/master/cloud/notebooks/python_sdk/lifecycle-management/Use ibm-watsonx-ai to extract data about historical AutoAI experiments and deployments stored in spaces.ipynb
6405 views
Use ibm-watsonx-ai
to extract data about historical AutoAI experiments and deployments stored in spaces
This notebook contains the steps and code to extract the info about any available historical AutoAI experiment runs as well as deployments in watsonx.ai Runtime service. It contains steps and code to work with ibm-watsonx-ai library available in PyPI repository.
Some familiarity with Python is helpful. This notebook uses Python 3.11.
Learning goals
The learning goals of this notebook are:
Work with watsonx.ai Runtime to extract info about past AutoAI experiments
Work with watsonx.ai Runtime to extract info about AutoAI models that are deployed into spaces
Store the desired data into CSV's for further analysis
Contents
This notebook contains the following parts:
1. Installing and importing the ibm-watsonx-ai
and dependecies
Note: ibm-watsonx-ai
documentation can be found here.
2. Connecting to watsonx.ai Runtime
Authenticate the watsonx.ai Runtime service on IBM Cloud. You need to provide Cloud API key
and location
.
Tip: Your Cloud API key
can be generated by going to the Users section of the Cloud console. From that page, click your name, scroll down to the API Keys section, and click Create an IBM Cloud API key. Give your key a name and click Create, then copy the created key and paste it below. You can also get a service specific url by going to the Endpoint URLs section of the watsonx.ai Runtime docs. You can check your instance location in your watsonx.ai Runtime Service instance details.
You can use IBM Cloud CLI to retrieve the instance location
.
NOTE: You can also get a service specific apikey by going to the Service IDs section of the Cloud Console. From that page, click Create, and then copy the created key and paste it in the following cell.
Action: Enter your api_key
and location
in the following cells.
Getting projects that can be accessed direactly via API requests, once it's supporten in the SDK, it will be updated.
Getting spaces via SDK.
Introducing a method for setting the client's scope - either a space, or a project.
Export data from cloud (optional)
If you are running this notebook on cloud, execute this cell in order to download the saved results
If you want to clean up all created assets:
experiments
trainings
pipelines
model definitions
models
functions
deployments
please follow up this sample notebook.
You successfully completed this notebook! You learned how to use scikit-learn machine learning as well as watsonx.ai Runtime for model creation and deployment. Check out our Online Documentation for more samples, tutorials, documentation, how-tos, and blog posts.
Authors
Marta Tomzik, Software Engineer at watsonx.ai.
Copyright © 2025 IBM. This notebook and its source code are released under the terms of the MIT License.