The files in these examples are read only. To execute the files you will need to copy + paste the code, or download the files and upload them into your workspace.
Example of how to use a Domo account in a Jupyter Notebook
- exampleAccount.ipynb - A Jupyter notebook with a simple example of using accounts in a notebook
- When creating or updating a workspace choose the optional step "Accounts"
- Select the button "Add Account"
- Choose an Account
Optionally, give the account a different alias
- Click "Save Workspace" to apply your account
- Start your workspace
- Create a new notebook (or update an existing notebook)
- On the left navigation there is an account icon
- Use this to view the accounts you have configured for the workspace
- Optionally double-click on the account alias to pre-populate starting code to use the account. Skip step 4
- Import the domojupyter asset
import domojupyter as domo
- Get properties on the account
account_properties = domo.get_account_property_keys('account_name')
- Get value of an account property
account_property_value = domo.get_account_property_value('account_name', 'property_name')