Giter Site home page Giter Site logo

dashastro's Introduction

Making a Dashboard with Heroku

To make interactive python applications, we here use Flask through Dash. We make interactive plots using plotly and present the finished applications on Heroku. Heroku can be used for free. However, note that the free version comes with a few limitations: you are only given 1 duno, meaning that your app only can respond to one user request at a time. If each request only takes ms, a couple of users will, however, not feel any drag. You are also limited to 300 MB in total per application. Up to 5 applications per user are possible for free. To see how the app looks on Heroku, click here. The present example is very minimalistic.

To create the example, we use publically available data from the APOKASC-II sample.

app.py

This python script is the core of the application. It contains an app-layout, in which you can set up your homepage, with an interactive callback (that changes as a result of the user input). This python script could be run on your own computer through the terminal. All the remaining files are only there to enable heroku to run the script as well.

Procfile

This file tells Heroku how to launch your application. We do this through gunicorn.

runtime.txt

This file specifies how to run app.py. Specify the python version.

requirements.txt

This file tells Heroku which packages to load. Since we use gunicorn, we must load this. In addition, we must specify all the python packages involved. Note that plotly needs pandas.

dashastro's People

Contributors

asoelvsten 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.