Coder Social home page Coder Social logo

thiklock / databricks-streamlit-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renardeinside/databricks-streamlit-demo

0.0 0.0 0.0 36.06 MB

Demo of Streamlit application with Databricks SQL Endpoint

Home Page: https://medium.com/p/54e51bb6b0a8

Python 88.20% Makefile 3.06% Dockerfile 8.73%

databricks-streamlit-demo's Introduction

Demo of Streamlit application with Databricks SQL Endpoint

Table of Contents

Prerequisites

  • Databricks SQL endpoint
  • Free Mapbox token - generate one here
  • Locally: Docker, Makefile

Quick demo

demo

How to

  1. Create or start an existing SQL endpoint of any size in your Databricks workspace
  2. Create new query and define the database and table:
CREATE DATABASE IF NOT EXISTS streamlit_demo_db;
CREATE TABLE IF NOT EXISTS streamlit_demo_db.nyctaxi_yellow 
USING DELTA
LOCATION "dbfs:/databricks-datasets/nyctaxi/tables/nyctaxi_yellow";
  1. On local machine, clone the repository and create .env file in the repository directory. Follow the .env.sample for instructions.
  2. On local machine, launch make run to start the server
  3. Open http://localhost:8052 and enjoy the new application :)

References

databricks-streamlit-demo's People

Contributors

renardeinside avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.