计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
core-dashboard-build【效率与协作】Build, validate, run, and troubleshoot Vizro dashboards in Python or YAML using vizro-core models and the Vizro app wrapper.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to create, validate, run, deploy, or troubleshoot a Vizro dashboard at the dashboard/page/layout level.
Route elsewhere when the task is mainly about:
../core-components-data-actions/SKILL.md.../charts-and-figures/SKILL.md.../mcp-agent-workflows/SKILL.md.../repo-development-testing/SKILL.md.from vizro import Vizro
import vizro.models as vm
page = vm.Page(
title="Overview",
components=[
vm.Card(text="Hello Vizro"),
],
)
dashboard = vm.Dashboard(pages=[page], title="My dashboard")
app = Vizro().build(dashboard) # returns the Vizro wrapper
app.run(debug=True)
Important: Vizro().build() returns the Vizro wrapper. Use app.dash for raw Dash APIs, callback maps, index_string, server integration, or app title checks.
YAML examples load into the same Pydantic models:
from pathlib import Path
import yaml
from vizro import Vizro
from vizro.models import Dashboard
config = yaml.safe_load(Path("dashboard.yaml").read_text(encoding="utf-8"))
dashboard = Dashboard(**config)
Vizro().build(dashboard).run()
Use scripts/validate_vizro_dashboard.py dashboard.yaml to parse and build without starting a server.
vm.Dashboard(pages=[...]) and vm.Page(title=..., components=[...]) first; add data, filters, actions, and charts after the skeleton validates.assets_folder into Vizro(...) rather than relying on the current working directory.# Installed package smoke
python scripts/probe_vizro_environment.py
# Validate a YAML or Python dashboard without running a server
python scripts/validate_vizro_dashboard.py path/to/dashboard.yaml
python scripts/validate_vizro_dashboard.py path/to/app.py
For repository edits, use package-local tests from ../repo-development-testing/SKILL.md; do not start with full browser e2e unless the task actually touches browser behavior and Chrome/Chromium is available.
vizro-core/src/vizro/_vizro.py: Vizro, build, run, Dash app handling.vizro-core/src/vizro/models/_dashboard.py, _page.py: core model validation/build behavior.vizro-core/examples/tutorial/app.py: Python dashboard example.vizro-core/examples/dev/yaml_version/{app.py,dashboard.yaml}: YAML loading pattern.vizro-core/docs/pages/user-guides/{layouts,run-deploy}.md and existing vizro-e2e-flow dashboard/YAML/layout skills.