File tree Expand file tree Collapse file tree 5 files changed +63
-4
lines changed
plotlydash_flask_tutorial/plotlydash Expand file tree Collapse file tree 5 files changed +63
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # ##########################
3+ # ##########################
4+ # # Linter GitHub Actions ##
5+ # ##########################
6+ # ##########################
7+ name : Lint Code Base
8+
9+ #
10+ # Documentation:
11+ # https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+ #
13+
14+ # ############################
15+ # Start the job on all push #
16+ # ############################
17+ on :
18+ push :
19+ branches-ignore :
20+ - ' master'
21+
22+ # ##############
23+ # Set the Job #
24+ # ##############
25+ jobs :
26+ build :
27+ # Name the Job
28+ name : Lint Code Base
29+ # Set the agent to run on
30+ runs-on : ubuntu-latest
31+
32+ # #################
33+ # Load all steps #
34+ # #################
35+ steps :
36+ # #########################
37+ # Checkout the code base #
38+ # #########################
39+ - name : Checkout Code
40+ uses : actions/checkout@v2
41+
42+ # ###############################
43+ # Run Linter against code base #
44+ # ###############################
45+ - name : Lint Code Base
46+ uses : docker://github/super-linter:v2.2.0
47+ env :
48+ VALIDATE_ALL_CODEBASE : false
49+ VALIDATE_ANSIBLE : false
50+ ...
Original file line number Diff line number Diff line change 44![ Python] ( https://img.shields.io/badge/Python-^3.8-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a )
55![ Flask] ( https://img.shields.io/badge/Flask-1.1.2-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
66![ Flask-Assets] ( https://img.shields.io/badge/Flask--Assets-v2.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
7- ![ Pandas] ( https://img.shields.io/badge/Pandas-v1 .0.4 -blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
7+ ![ Pandas] ( https://img.shields.io/badge/Pandas-v^1 .0.0 -blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
88![ Dash] ( https://img.shields.io/badge/Dash-v1.12.0-blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
99![ Plotly] ( https://img.shields.io/badge/Plotly-v4.8.1-blue.svg?longCache=true&logo=python&longCache=true&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a )
1010![ GitHub Last Commit] ( https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c )
1414
1515![ Plotly Dash Tutorial] ( https://storage.googleapis.com/hackersandslackers-cdn/2018/12/Dash@2x.jpg )
1616
17- Live demo: https://plotlydashflask.hackersandslackers.app/
17+ Make Plotly Dash part of your Flask Application by following this example.
1818
19- Tutorial: https://hackersandslackers.com/plotly-dash-with-flask/
19+ * The full tutorial can be found here: https://hackersandslackers.com/plotly-dash-with-flask/
20+ * A live demo can be found here: https://plotlydashflask.hackersandslackers.app/
2021
2122## Installation
2223
Original file line number Diff line number Diff line change 1+ """Prepare data for Plotly Dash."""
12import pandas as pd
3+ import numpy as np
24
35
46def create_dataframe ():
@@ -9,4 +11,4 @@ def create_dataframe():
911 num_complaints = df ['complaint_type' ].value_counts ()
1012 to_remove = num_complaints [num_complaints <= 30 ].index
1113 df .replace (to_remove , np .nan , inplace = True )
12- return df
14+ return df
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : [
3+ " config:base"
4+ ]
5+ }
Original file line number Diff line number Diff line change @@ -20,5 +20,6 @@ python-dotenv==0.14.0
2020pytz == 2020.1
2121retrying == 1.3.3
2222six == 1.15.0
23+ wcwidth == 0.2.5
2324webassets == 2.0
2425Werkzeug == 1.0.1
You can’t perform that action at this time.
0 commit comments