Skip to content

App View

App View turns a notebook into a polished dashboard or report: sections, cards, tabs, and embedded cell outputs—without building a separate web app.

The /create-app built-in skill teaches the assistant App View layout. Extended guide: Built-in skill: Create app.

Use this guide when you want to present notebook results in a clean layout while keeping analysis code in Notebook view.

When to use App View

  • Shareable dashboards built from existing notebook cells
  • Reports that hide raw code and show narrative plus charts
  • Tabbed or grid layouts over multiple outputs

App View is layout and composition. Interactive sliders, buttons, and forms belong in Python orion_ui cells; App View then references those outputs.

Switch to App View

  1. Open a notebook in Orion.
  2. Use the view toggle in the toolbar to switch from Notebook to App View.

If nothing is configured yet, you see No cells in App View with a hint to add content from Notebook view.

Add content from Notebook view

  1. Switch to Notebook view.
  2. Right-click a cell or an output.
  3. Choose Add to App View (or Remove from App View to undo).

You can also ask the assistant to build or update an App View layout from your notebook content.

How App View is stored

Layout lives in notebook metadata at metadata.orion.appView:

  • schema — declarative tree of built-in layout primitives
  • css — optional scoped styles for semantic class hooks

Orion reads this metadata when rendering App View. You do not need to edit JSON by hand unless you want fine-grained control; the assistant and context menus can manage it for you.

Built-in layout primitives

V1 App View supports these built-in types:

Layout and containers: Page, Stack, Grid, Section, Card, Tabs, Accordion, Collapsible, Carousel, Separator

Notebook content: MarkdownCell (render a markdown cell by id), Output (render a code cell output by cellId and outputIndex)

Static control primitives exist for compatibility but do not replace orion_ui for real interactivity. Use Python orion_ui for sliders, selects, and run buttons, then reference the cell output with Output.

App View vs Orion UI

ConcernUse
Arrange sections, cards, tabsApp View metadata
Sliders, selects, buttons that talk to the kernelorion_ui in a code cell
Style hooks (borders, spacing)metadata.orion.appView.css — see Style App View with CSS

Example workflow

  1. Write analysis cells and an orion_ui control cell in Notebook view.
  2. Run cells so outputs exist.
  3. Switch to App View or ask the assistant to create a layout with PageSectionGridCardOutput.
  4. Toggle back to Notebook view to edit code; App View updates when you rerun cells.

A sample notebook with App View and orion_ui is included in the Orion repository at public/test-files/orion_ui_sample.ipynb.

Troubleshooting

  • Empty App View → add cells via right-click in Notebook view
  • App View schema could not be rendered → see Fix App View schema errors
  • Interactive controls not updating → implement them in orion_ui, not in App View metadata alone

Last updated May 2026.

Apache-2.0 Licensed