⚠️ Pre-Release Notice: This SDK is currently in pre-release development. Please ensure you are reading documentation that corresponds to the specific version of the SDK you have installed, as features and APIs may change between versions.
- Python >=3.10, <3.13
- Valid Uncertainty Engine account
pip install uncertainty-engineWith optional dependencies:
pip install "uncertainty_engine[vis,notebook,data]"To run and queue workflows you must have your Uncertainty Engine username and password set up. To do this you can run the following in your terminal:
export UE_USERNAME="your_username"
export UE_PASSWORD="your_password"All interactions with the Uncertainty Engine API are performed via a Client. The client can be defined as follows:
from uncertainty_engine import Client
client = Client()With an instantiated Client object, and username and password set as environmental variables, authentication can be carried via the following:
client.authenticate()
from pprint import pprint
from uncertainty_engine import Client, Environment
from uncertainty_engine.nodes.basic import Add
# Set up the client
client = Client()
client.authenticate()
# Create a node
add = Add(lhs=1, rhs=2)
# Run the node on the server
response = client.run_node(add)
# Get the result
result = response.outputs
pprint(result)For more some more in-depth examples checkout our example notebooks.
