Skip to content

Simple Dash app demonstrating connection to Databricks via the Python SQL connector

License

Notifications You must be signed in to change notification settings

plotly/dash-dbx-sql

Repository files navigation

Building Plotly Dash Apps on a Lakehouse with Databricks SQL

Plotly on Databricks Blog Series — Article #1 (June/22)

Authors

Cody Austin Davis (Solutions Architect, Databricks), Hannah Ker (Solutions Architect, Plotly)

with special contributions from Daniel Anton Suchy & Tammy Do

Links

Medium Article

Plotly Dash App

Youtube Video

Overview

Python developers who want to connect a Plotly Dash web app front end to a Databricks back end will be well-served by the Databricks SQL connector for Python, a specific form of the recently announced Databricks SQL capability.

This library allows Plotly Dash apps to very quickly run AND retrieve results of SQL queries that are executed on a Databricks cluster, thus allowing Databricks customers to extend their use of Databricks:

  • For any/all manner of data warehousing use case
  • With an ORM (e.g. SQLAlchemy) to perform advanced use cases such as:
    • Waterfall filtering/visualizations
    • Sliders/filters/dependent visuals
    • Periodic updates for streaming dashboards
    • Pushing expensive SQL transformations to the Databricks SQL Photon engine
  • To simplify back-end architectures and costs to accommodate use cases such as the above (e.g. avoiding external caching architecture work-arounds)
  • To allow Databricks users (highly technical BI engineers, data scientists, data engineers) to easily develop simple through to sophisticated interactive data analytics and visualization web application experiences for which Dash is highly differentiated.

Screen Shot 2022-06-24 at 2 23 16 PM

For specific details of this integration, please refer to the Medium article at:

https://plotlygraphs.medium.com/b9761c201717

About

Simple Dash app demonstrating connection to Databricks via the Python SQL connector

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published