SDK Examples
In this example, we'll run through a few basic commands using the SDK. We'll import the SDK, create a Project, and launch a Workflow.
The SDK is bundled with the Gradient CLI.
NOTE: We'll be adding a Jupyter Notebook template that you can run on your own.
Getting Started
This assumes that you have the environment variable PAPERSPACE_API_KEY
set to your api key. If you are using a Paperspace environment it is recommend to use a secret to pass it to your workload. If you are using an interactive environment use the gradient apiKey
command to securely configure your api key.
Print list of projects
Create project
Launch a Workflow
Grab your Workflow ID
Run the Workflow
Last updated