An App owns a CUSTOM PANEL, a tab that names the app the way a chart tab names its instrument. Saving the file under apps/ is what registers it: the tab appears under VIEW → Custom panels and survives restarts, reloads and a synced layout on another machine.
Start, Stop, Restart and Remove live on the panel itself, because the panel is the application's source of truth. Close stops the app and closes the tab without touching the file, and deleting the file is what removes the panel for good.
The module declares its layout once, at import, and afterwards only pushes values into named slots. While25 owns every pixel.
ui.panel(panel_id, label="")ui.layout(*widgets)ui.row(*children)ui.metric(slot, label="") · ui.chart(slot, label="", live=False) · ui.table(slot, label="") · ui.text(slot, label="")slot you push into. A chart slot fed a Wiz-shaped spec renders the platform’s interactive chart surface — hover, tooltips, legend. Declare live=True only when the chart redraws at data rate: that buys a lightweight SVG fast path showing axis min/max and the x extent instead of full interactivity. The default is right for anything a person reads.ui.view(slot, label="")blocks describing what to show — header, tiles, kv, table, badges, text, progress, chart, html, section, row, divider — and the While25 renders it in its own components. A chart block is the interactive Wiz surface by default ( "live": true for the SVG fast path), and an html block is your own markup as one sandboxed section — so custom HTML and an interactive chart share one panel, side by side in a row.ui.html(slot, label="")<svg> or CSS bars). Declare it as the layout’s only widget and the view becomes the whole panel (full height, no caption, no padding); put it alongside other widgets and it is one content-sized section among them, its height tracking its own content. label is optional here — pass one for a caption, omit it and your own <h1> leads.the frame you render intovar(--color-amber), --color-profit, --color-loss, --color-text-dim, --color-surface-2 and more — and follow a theme switch. Bare markup arrives styled (headings, zebra tables with tabular numerals, code blocks, lists), with helper classes .card, .tile, .grid, .row, .num, .profit, .loss, .muted. Three faces by role — IBM Plex Mono for data, Inter for prose, JetBrains Mono for code — on a four-step scale. That brand theme is the default, not a rule: it sits in a lower cascade layer, so any CSS you write wins over it, and the platform never snaps or strips anything you write. Build on the tokens and classes and the page reads as part of the platform. Links open in the system browser (https only).<script>, on* handlers and javascript: URLs are inert, so an onclick would silently do nothing. Compute in Python and push new markup instead. CSS animations, transitions and :hover do work — that is the motion you have. The frame isolates styles both ways, and vh units resolve against the frame rather than the window.while25.ui.push(slot, value)while25.ui.backtest_block(equity, trades, *, title=None, subtitle=None, currency=None, stats=None, benchmark=None, notes=None) → dictui.view slot: statistic tiles, equity curve, drawdown, monthly table and trade list, drawn by the terminal. equity is (time, value) pairs; a trade needs entry_time exit_time entry exit pnl. Times are epoch milliseconds or a datetime. Nothing is invented: sharpe and the like appear only when passed in stats.chart block in ui.view, the backtest block, or ui.html.metric, chart, table, text and html show what a module computed. None of them accept input or call back into Python. The interaction model is a deliberate separate design pass — freezing a half-considered callback contract that third parties must live with would be worse than waiting.numpy and pandas are available in the runtime. Get the desktop app to run it — Python runs beside the engine, which a browser cannot host.