Displays
Render formatted content within the run timeline
Runs can use either the JavaScript or Python SDK to render formatted content within the run UI using
displays. Displays are helpful for surfacing contextual information about a run to operators, such
as:
- Conveying the state of a run
- Rendering output in a custom format
Displays are independent of run Output.
Text
Text
Creates a display that renders markdown-rendered text.

typescriptCopied1await airplane.display.text(`Found **${users.length}** users from team "${team.name}".`);
pythonCopied1airplane.display.text(f"Found **{len(users)}** users from team {name}.")
Table
Table
Creates a display that renders a list of rows in a table.

typescriptCopied1await airplane.display.table(users);
pythonCopied1airplane.display.table(users)
JSON
JSON
Creates a display that renders a JSON document with syntax highlighting.

typescriptCopied1await airplane.display.json(httpResponse);
pythonCopied1airplane.display.json(httpResponse)
File
File
Creates a display that renders a File and allows users to download it from the UI. If the file is a
text, csv, image, video, or audio file, it will be rendered inline in the UI.

typescriptCopied1// First ask the user for a file.2const { photo } = await airplane.prompt({ photo: "upload" });34// Then display it in the UI5await airplane.display.file(photo);
pythonCopied1# First ask the user for a file.2values = airplane.prompt({ photo: "upload" });34# Then display it in the UI5airplane.display.file(values["photo"]);
SDK reference
SDK reference
See Display SDK reference for more information.