
用于构建互动式Databricks应用的现成代码片段。
概览
用于在Databricks Apps上构建应用的现成代码片段。 了解更多请访问。编码代理:从以下路径开始。 - 例如读取和写入表和卷,调用机器学习/生成人工智能,或触发工作流程。- 并将片段复制到您自己的应用中。- (权限、资源、依赖)针对每个配方。- 部署到 Databricks 应用或本地运行。- 仅为 这个仓库是Dash、Streamlit、Reflex和FastAPI的一层。 Cookbook 教你如何组合 Dash/Streamlit/Reflex/FastAPI。(list_cookbook_recipes,get_cookbook_recipe)是让一个空应用文件夹里的代理无需猜测就能获得片段。官方平台技能(AppKit、应用部署)仍然来自 AI Dev Kit / Databricks aitools。人工操作(光标、Claude、升级):在文档网站上。 你只需要 、 、 和 。从 GitHub 克隆;技能和 MCP 的 recipe 安装(MCP venv 的公开 PyPI)。你确实需要 Databricks VPN 或内部 npm。节点。
概述(AI 翻译)
用于在Databricks Apps上构建Dash、Streamlit、Reflex和FastAPI应用的现成代码片段。
了解更多关于apps-cookbook.dev的内容。编码代理:从AGENTS.md开始,并从以下路径开始。
什么是Databricks应用食谱?
- 10+ 个常见应用用例的配方,如读取和写入表和卷、调用机器学习/生成式人工智能,或触发工作流程。
- 尝试在Cookbook应用中查找食谱并复制片段到你自己的应用。
- 需求(权限、资源、依赖)针对每个配方。
- 部署到 Databricks 应用或本地运行。
- 仅适用于Dash、Streamlit、Reflex和FastAPI的片段。
选择一条道路
这个仓库是 Dash、Streamlit、Reflex 和 FastAPI 的 Python 配方层。
| 如果你愿意… | 用 | 为什么 |
|---|---|---|
| 一个图表/关键绩效指标仪表盘,没有自定义应用 | AI/BI(Lakeview)仪表盘 | 管理型;不是Databricks应用 |
| Databricks UI中的自然语言应用,数据保持在平台上,应用空间 / 缩放至零(测试版) | Genie应用构建器 | 工作空间内的NL构建器;生成AppKit。不是这个仓库 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
📖 Databricks Apps Cookbook 🍳
Ready-to-use code snippets for building Dash, Streamlit, Reflex, and FastAPI apps on Databricks Apps.
Learn more on apps-cookbook.dev. Coding agents: start with AGENTS.md and the path below.
What is the Databricks Apps Cookbook?
- 10+ recipes for common Apps use cases such as reading and writing tables and volumes, invoking ML / GenAI, or triggering workflows.
- Try recipes in the Cookbook app and copy a snippet into your own app.
- Requirements (permissions, resources, dependencies) for each recipe.
- Deploy to Databricks Apps or run locally.
- Snippets for Dash, Streamlit, Reflex, and FastAPI only.
Choose a path
This repo is the Python recipe layer for Dash, Streamlit, Reflex, and FastAPI.
| If you want… | Use | Why |
|---|---|---|
| A dashboard of charts/KPIs, no custom app | AI/BI (Lakeview) dashboards | Managed; not a Databricks App |
| Natural-language app in the Databricks UI, data stays on-platform, App Spaces / scale-to-zero (Beta) | Genie App Builder | In-workspace NL builder; generates AppKit. Not this repo |
| IDE coding on Databricks (jobs, pipelines, AppKit, Python platform rules) | Databricks Agent Skills → databricks aitools install |
Official skills (databricks-apps, databricks-apps-python, databricks-core, …) |
| Default new custom-code app (TypeScript/React) | Official AppKit (databricks apps init, skill databricks-apps) |
Node.js + React SDK; recipes here do not cover AppKit |
| Dash, Streamlit, Reflex, or FastAPI recipes (tables, volumes, Genie API, jobs, in-app MCP, …) | This repo | Tested snippets + databricks-skills/ for agents |
MCP
| If you want… | Use | Why |
|---|---|---|
| Your coding agent (Cursor, Claude Code, …) to call Databricks data/tools (SQL, UC functions, Genie, AI Search) | Official managed MCP via Unity Gateway (ug mcp add). Pair with Databricks Agent Skills / databricks aitools |
Tools for the agent against the workspace |
| Your coding agent to look up this cookbook’s recipes and skills | This repo — mcp-server/ (./mcp-server/mcp_install.sh) |
Same client files as Agent Skills (project vs --global). Server name cookbook |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add databricks-solutions/databricks-apps-cookbook