Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/panel_live_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ async def show(
name: str = "",
description: str = "",
method: Literal["inline", "server"] = "inline",
zoom: int = 100,
zoom: int = 75,
quick: bool = False,
ctx: Context | None = None,
) -> str:
Expand Down Expand Up @@ -607,11 +607,14 @@ async def show(
dataframes, and objects that do NOT import panel directly.
- "server": displays objects marked `.servable()`. Use when the code imports
and uses Panel to build dashboards, apps, or complex layouts.
zoom : {100, 75, 50, 25}, default 100
zoom : {100, 75, 50, 25}, default 75
Initial zoom level for the visualization preview.
Choose based on how much content the visualization contains:
- 100: simple plots, single charts, dataframes, small widgets — fits naturally.
- 75: multi-panel layouts, apps with a sidebar, moderate dashboards.
Default to 75 for most visualizations — it fits the majority of charts
and dashboards comfortably in the preview pane. Only deviate when needed:
- 100: tiny widgets, single-value displays, or very small plots where
75 would make text unreadable.
- 75: use for almost everything — simple charts, multi-panel layouts,
dataframes, moderate dashboards. This is the recommended default.
- 50: full-page template apps (FastListTemplate, MaterialTemplate, etc.)
with header + sidebar + main area.
- 25: very large or wide apps designed for big screens; use when 50 still
Expand Down
2 changes: 1 addition & 1 deletion src/panel_live_server/templates/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
position: relative;
width: 100%;
height: 100%;
min-height: 300px;
min-height: 500px;
overflow: hidden;
}

Expand Down
Loading