We assume you already have credentials to access the Remote Lab. You can request access herearrow-up-right.
You can install the packagearrow-up-right via pip, i.e.,
pip install causalchamber
Upon becoming a subscriberarrow-up-right, you will receive your credentials through a secure link. Store them in a file with the following content
[api_keys] user = <YOUR USERNAME> password = <YOUR PASSWORD>
You can also load the credentials using environment variables (see the next step).
Store your credentials in a safe place. Make sure you don't commit them to a public repository!
Start a connection to the remote lab to see your available chambers and submit experiments
import causalchamber.lab as lab rlab = lab.Lab(credentials_file = 'path/to/file')
If you stored your credentials in environment variables, e.g., USER and KEY
USER
KEY
import os import causalchamber.lab as lab rlab = lab.Lab(credentials=(os.getenv('USER'), os.getenv('KEY')))
Output
Now you're ready to run experiments on the chambers! You can do so in two ways.
Last updated 0 minutes ago