Using workbook templates#
Save a workbook’s layout as a template, then open the same analysis on any asset or run.
In code#
from nominal.core import NominalClient
client = NominalClient.from_profile("default")
template = client.get_workbook_template("<ri.scout.instance.template.identifier>")
workbook = template.create_workbook(asset="<ri.scout.instance.asset.identifier>") # or run="<ri.scout.instance.run.identifier>"
print(workbook.nominal_url)
use nominal::core::{WorkbookCreate, WorkbookDataScope};
let client = nominal::NominalClient::from_profile("default")?;
let template = client.templates().get("<ri.scout.instance.template.identifier>").await?;
let workbook = client.workbooks().create_from_template(
&template,
WorkbookDataScope::assets(["<ri.scout.instance.asset.identifier>"]), // or WorkbookDataScope::runs([...])
WorkbookCreate::new(),
).await?;
println!("{}", workbook.nominal_url());
In the Nominal app#
In a workbook laid out the way you want, open the workbook menu (the logo ▾ at the top left) and choose File ▸ New template. The template opens in a new tab. Only a workbook on a single asset can become a template.
Click PUBLISH, enter a Message, and click PUBLISH.
To use the template, on an asset’s or run’s page click the arrow beside NEW WORKBOOK, choose New workbook from template, and click the template.
To change a published template, or bring its changes into a workbook made from it, see 🔒︎Workbook templates.