Platform widgets enable you to integrate and interact with other parts of the Latch platform directly within your plots and analysis workflows. These widgets provide seamless access to registry data, workflows, and file systems.
Registry Table
w_registry_table_picker
widget to select a table from the registry, or supply a table id directly.label
: string required label displayed above the tabletable_id
: string required identifier for the registry table to displayreadonly
: bool optional, defaults to False. When True, the table is read-onlydefault
: string | None optional default table idappearance
: FormInputAppearance | None optional appearance configurationkey
: string optional unique identifier for the widgetRegistryTableValue
object with the following structure:table
: Table - The registry table object containing the data and metadata.
selected_rows
: list[Record] - A list of selected row records from the table. Returns an empty list if no rows are selected.
Table
object provides access to the table’s data, schema, and metadata, while Record
objects represent individual rows with their field values and metadata. Learn more about the Table API and Record API.RegistryTableValue
containing the table objectvalue
propertyWorkflow Output
label
: string required label for the workflow buttonwf_name
: string required name of the workflow to executeparams
: dict required dictionary of parameters to pass to the workflow.version
: string | None optional version of the workflow to use, defaults to the latest versionreadonly
: bool optional, defaults to False. When True, the workflow button is disabledkey
: string optional unique identifier for the widgetCompletedExecution
Execution
value()
method returns either an Execution
object containing information about the launched workflow or None
if no executions have been launched.Execution
object’s asynchronous wait
method which returns a CompletedExecution
object.Latch Data Browser
label
: string required label displayed above the browserdir
: string | LPath required path to the directory to browse. Can be a string or LPath object “latch://<workspace_id>.account/<path>” will only work for the corresponding workspace_id, but “latch:///<path>” will work for any workspace that has that path.readonly
: bool optional, defaults to False. When True, the browser is read-onlyappearance
: FormInputAppearance | None optional appearance configurationkey
: string optional unique identifier for the widgetLPath
object representing the selected directory that can be integrated with your analysis. Learn more about the LPath API.