最初のプロジェクトを作成する
topic is not yet edited
This document walks you through a simple workflow where you can use AI Unlimited and JupyterLab to:
- Deploy on-demand, scalable compute
- Connect to your external data source
- Run the workload
- Suspend the compute
Before you begin
Copy and retain these items:
-
The API key from the AI Unlimited. link to the separate topic
-
CSP environment variables from your Console. See Environment Variables.
- AWS
- Azure
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
, andAWS_SESSION_TOKEN
Learn about AWS environment variables.
ARM_SUBSCRIPTION_ID
,ARM_CLIENT_ID
, andARM_CLIENT_SECRET
Learn about Azure environment variables.
Run your first workload
Run %help
or %help <command>
for details on any magic command. See Magic commands for more details.
-
Connect to JupyterLab using
http://localhost:8888
and enter the token when prompted. -
Connect to AI Unlimited using the API Key.
注記Depending on the installation type, the host value may vary.
- For Docker Compose: http://ai-unlimited:3282
- For a single container with an external client: http://localhost:3000
- For cloud deployments: Content to be filled
-
Create a new project.
注記Currently, Teradata AI Unlimited supports AWS and Azure.
-
[Optional]
Create an authorization object to store the CSP credentials. ReplaceACCESS_KEY_ID
,SECRET_ACCESS_KEY
, andREGION
with your values. -
Deploy an engine for the project.
Replace the
Project_Name
to a name of your choice. The size parameter value can be small, medium, large, or extralarge. The default size is small.The deployment process takes a few minutes to complete. On successful deployment, a password is generated.
-
Establish a connection to your project.
When a connection is established, the interface prompts you for a password. Enter the password generated in the previous step.
-
Run the sample workload.
注記Make sure that you do not have tables named SalesCenter or SalesDemo in the selected database.
a. Create a table to store the sales center data.
First, drop the table if it already exists. The command fails if the table does not exist.
b. Load data into the SalesCenter table using the
%dataload
magic command.注記Unable to locate the salescenter.csv file? Download the file from GitHub Demo: Charting and Visualization Data.
Verify that the data was inserted.
c. Create a table with the sales demo data.
d. Load data into the SalesDemo table using the
%dataload
magic command.注記Unable to locate the salesdemo.csv file? Download the file from GitHub Demo: Charting and Visualization Data.
Verify that the sales demo data was inserted successfully.
Open the Navigator for your connection and verify that the tables were created. Run a row count on the tables to verify that the data was loaded. e. Use charting magic to visualize the result. Provide X and Y axes for your chart.
f. Drop the tables.
-
Back up your project metadata and object definitions in your GitHub repository.
-
Suspend the engine.
Congrats! You've successfully run your first use case in JupyterLab.