Code Monkey home page Code Monkey logo

208-authentication-example's Introduction

Getting Started with Plotly Dash

Authentication App Example

View the finished app here

Description

Dash is a Python framework for building analytical web applications. Dash ties modern UI elements like dropdowns, sliders, and graphs to your Python code. In this class, participants will learn how to build a simple Dash application and deploy it online.

How to deploy a simple Plotly Dash app on Heroku

Notes

  • The assets folder is designed to hold all of your static images. Then you can call them using the get_asset_url method, as follows:
html.Img(src=app.get_asset_url(some_image.jpg)),
  • There's a file called favicon.ico -- you can find and download customized favicons here. Just replace the current favicon with a new one.
  • The requirements.txt includes the basic libraries you'll need to run a simple Dash app, but for more complicated projects you may need to add additional libraries such as dash-daq or scikit-learn.
  • Be sure to include the files runtime.txt and Procfile
  • You should only have one app per repository, and you should name it app.py for deployment on Heroku. This name is referenced in Procfile and also inside of app.py itself.

Additional Reading

Simple dash apps to fork and imitate

This page presents a collection of very simple dash apps, designed for learning purposes. Each has an embedded link to its source code on github. Students can fork the code on github, modify the app.py file, and deploy their own version on Heroku.

Simple (no callbacks, no pandas)

Dash apps with simple callbacks

More advanced callbacks

Dash apps with Pandas

Dash apps with maps

Dash apps for machine learning models

Official Resources from Plotly:

Introducing Plotly Dash
Youtube: Dash in 5 minutes
Dash User Guide
Dash Workshop, Washington DC Edition - June 9-10, 2018
Chris Parmer's github repo for Dash
Dash Community Forum - like StackOverflow for Dash
Gallery of Dash apps

Additional resources for learning Dash

Dash Workbook by Jose Portilla
Github Repo by Jose Portilla
Using Dash to build public sector dashboards

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.