Workbooks#

A workbook is a set of charts and panels for viewing a run’s or an asset’s data in Nominal. A workbook template defines the panels once, so you can create the same workbook for every test.

Connect the client#

This guide assumes you have installed the client and setup your API keys.

Create a workbook from a template#

create_workbook() creates a workbook for a run or an asset. The template’s inputs must match the run’s ref names or the asset’s data scope names.

To copy a template’s RID, open it from Workbooks → Templates, click the arrow next to its name and select Copy RID. To look templates up by name or label instead, use search_workbook_templates().

Create a blank workbook#

Run.create_workbook and Asset.create_workbook create a workbook with no panels, scoped to that run or asset. Open its link to add panels in Nominal:

workbook = run.create_workbook()
print(workbook.nominal_url)

The title defaults to “Workbook for” and the run’s or asset’s name; pass title= to choose another. To view several runs or several assets in one workbook, use NominalClient.create_workbook. It takes objects or RIDs:

workbook = client.create_workbook(runs=[run_a, "<RUN_RID>"], title="Spin-up review")

Find workbooks#

search_workbooks() filters by run, asset, labels and author:

for workbook in client.search_workbooks(run=run):
    print(workbook.title, workbook.nominal_url)

search_workbooks() and search_workbooks() search the workbooks of one run or asset.