Spaces:
Running
Running
maxi_test
#4
by
maxschulz-COL
- opened
- .gitignore +0 -144
- app.py +0 -11
- assets/css/custom.css +0 -25
- requirements.in +1 -1
- requirements.txt +14 -31
.gitignore
DELETED
@@ -1,144 +0,0 @@
|
|
1 |
-
# npm node_modules
|
2 |
-
node_modules/
|
3 |
-
|
4 |
-
# Ipynb
|
5 |
-
ipynb_checkpoints
|
6 |
-
*/.ipynb_checkpoints/*
|
7 |
-
|
8 |
-
# IPython
|
9 |
-
profile_default/
|
10 |
-
ipython_config.py
|
11 |
-
|
12 |
-
# Byte-compiled / optimized / DLL files
|
13 |
-
__pycache__/
|
14 |
-
*.py[cod]
|
15 |
-
*$py.class
|
16 |
-
|
17 |
-
# C extensions
|
18 |
-
*.so
|
19 |
-
|
20 |
-
# Distribution / packaging
|
21 |
-
.Python
|
22 |
-
build/
|
23 |
-
develop-eggs/
|
24 |
-
dist/
|
25 |
-
downloads/
|
26 |
-
eggs/
|
27 |
-
.eggs/
|
28 |
-
lib/
|
29 |
-
lib64/
|
30 |
-
parts/
|
31 |
-
sdist/
|
32 |
-
var/
|
33 |
-
wheels/
|
34 |
-
share/python-wheels/
|
35 |
-
*.egg-info/
|
36 |
-
.installed.cfg
|
37 |
-
*.egg
|
38 |
-
MANIFEST
|
39 |
-
|
40 |
-
# macOS
|
41 |
-
*.DS_Store
|
42 |
-
.DS_Store
|
43 |
-
.AppleDouble
|
44 |
-
.LSOverride
|
45 |
-
.Trashes
|
46 |
-
|
47 |
-
# PyInstaller
|
48 |
-
*.manifest
|
49 |
-
*.spec
|
50 |
-
|
51 |
-
# Installer logs
|
52 |
-
pip-log.txt
|
53 |
-
pip-delete-this-directory.txt
|
54 |
-
|
55 |
-
# Unit test / coverage reports
|
56 |
-
htmlcov/
|
57 |
-
.tox/
|
58 |
-
.nox/
|
59 |
-
.coverage
|
60 |
-
.coverage.*
|
61 |
-
.cache
|
62 |
-
nosetests.xml
|
63 |
-
coverage.xml
|
64 |
-
*.cover
|
65 |
-
*.py,cover
|
66 |
-
.hypothesis/
|
67 |
-
.pytest_cache/
|
68 |
-
cover/
|
69 |
-
|
70 |
-
# Translations
|
71 |
-
*.mo
|
72 |
-
*.pot
|
73 |
-
|
74 |
-
# Django
|
75 |
-
*.log
|
76 |
-
local_settings.py
|
77 |
-
db.sqlite3
|
78 |
-
db.sqlite3-journal
|
79 |
-
|
80 |
-
# Flask
|
81 |
-
instance/
|
82 |
-
.webassets-cache
|
83 |
-
|
84 |
-
# Scrapy
|
85 |
-
.scrapy
|
86 |
-
|
87 |
-
# PyBuilder
|
88 |
-
.pybuilder/
|
89 |
-
target/
|
90 |
-
|
91 |
-
# IntelliJ
|
92 |
-
.idea/
|
93 |
-
*.iml
|
94 |
-
out/
|
95 |
-
.idea_modules/
|
96 |
-
|
97 |
-
# Vscode
|
98 |
-
.vscode/
|
99 |
-
|
100 |
-
# PEP 582
|
101 |
-
__pypackages__/
|
102 |
-
|
103 |
-
# Celery
|
104 |
-
celerybeat-schedule
|
105 |
-
celerybeat.pid
|
106 |
-
|
107 |
-
# SageMath
|
108 |
-
*.sage.py
|
109 |
-
|
110 |
-
# Environments
|
111 |
-
.env
|
112 |
-
.venv
|
113 |
-
env/
|
114 |
-
venv/
|
115 |
-
ENV/
|
116 |
-
env.bak/
|
117 |
-
venv.bak/
|
118 |
-
|
119 |
-
# Spyder
|
120 |
-
.spyderproject
|
121 |
-
.spyproject
|
122 |
-
|
123 |
-
# Rope
|
124 |
-
.ropeproject
|
125 |
-
|
126 |
-
# Mkdocs
|
127 |
-
/site
|
128 |
-
|
129 |
-
# Mypy
|
130 |
-
.mypy_cache/
|
131 |
-
.dmypy.json
|
132 |
-
dmypy.json
|
133 |
-
|
134 |
-
# Pyre
|
135 |
-
.pyre/
|
136 |
-
|
137 |
-
# Pytype
|
138 |
-
.pytype/
|
139 |
-
|
140 |
-
# Cython
|
141 |
-
cython_debug/
|
142 |
-
|
143 |
-
# Ruff
|
144 |
-
.ruff_cache/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -3,8 +3,6 @@
|
|
3 |
from typing import Optional
|
4 |
|
5 |
import pandas as pd
|
6 |
-
from dash import html, get_asset_url
|
7 |
-
import dash_bootstrap_components as dbc
|
8 |
import vizro.models as vm
|
9 |
import vizro.plotly.express as px
|
10 |
from vizro import Vizro
|
@@ -546,15 +544,6 @@ dashboard = vm.Dashboard(
|
|
546 |
)
|
547 |
|
548 |
app = Vizro().build(dashboard)
|
549 |
-
app.dash.layout.children.append(
|
550 |
-
dbc.NavLink(
|
551 |
-
["Made with ", html.Img(src=get_asset_url("images/logo.svg"), id="banner", alt="Vizro logo"), "vizro"],
|
552 |
-
href="https://github.com/mckinsey/vizro",
|
553 |
-
target="_blank",
|
554 |
-
external_link=True,
|
555 |
-
className="anchor-container",
|
556 |
-
)
|
557 |
-
)
|
558 |
server = app.dash.server
|
559 |
|
560 |
if __name__ == "__main__":
|
|
|
3 |
from typing import Optional
|
4 |
|
5 |
import pandas as pd
|
|
|
|
|
6 |
import vizro.models as vm
|
7 |
import vizro.plotly.express as px
|
8 |
from vizro import Vizro
|
|
|
544 |
)
|
545 |
|
546 |
app = Vizro().build(dashboard)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
547 |
server = app.dash.server
|
548 |
|
549 |
if __name__ == "__main__":
|
assets/css/custom.css
CHANGED
@@ -8,28 +8,3 @@ img[src*="#my-image"] {
|
|
8 |
#page-header {
|
9 |
padding-left: 8px;
|
10 |
}
|
11 |
-
|
12 |
-
.anchor-container {
|
13 |
-
align-items: center;
|
14 |
-
background: var(--text-primary);
|
15 |
-
border-top-left-radius: 8px;
|
16 |
-
bottom: 0;
|
17 |
-
color: var(--text-primary-inverted);
|
18 |
-
display: flex;
|
19 |
-
font-size: 0.8rem;
|
20 |
-
font-weight: 500;
|
21 |
-
height: 24px;
|
22 |
-
padding: 0 12px;
|
23 |
-
position: fixed;
|
24 |
-
right: 0;
|
25 |
-
}
|
26 |
-
|
27 |
-
.anchor-container:focus,
|
28 |
-
.anchor-container:hover {
|
29 |
-
background: var(--text-secondary);
|
30 |
-
color: var(--text-primary-inverted);
|
31 |
-
}
|
32 |
-
|
33 |
-
img#banner {
|
34 |
-
height: 16px;
|
35 |
-
}
|
|
|
8 |
#page-header {
|
9 |
padding-left: 8px;
|
10 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.in
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
gunicorn
|
2 |
-
vizro
|
|
|
1 |
gunicorn
|
2 |
+
vizro
|
requirements.txt
CHANGED
@@ -2,10 +2,6 @@
|
|
2 |
# uv pip compile requirements.in -o requirements.txt
|
3 |
annotated-types==0.7.0
|
4 |
# via pydantic
|
5 |
-
autoflake==2.3.1
|
6 |
-
# via vizro
|
7 |
-
black==24.10.0
|
8 |
-
# via vizro
|
9 |
blinker==1.8.2
|
10 |
# via flask
|
11 |
cachelib==0.9.0
|
@@ -15,9 +11,7 @@ certifi==2024.7.4
|
|
15 |
charset-normalizer==3.3.2
|
16 |
# via requests
|
17 |
click==8.1.7
|
18 |
-
# via
|
19 |
-
# black
|
20 |
-
# flask
|
21 |
dash==2.17.1
|
22 |
# via
|
23 |
# dash-ag-grid
|
@@ -46,9 +40,7 @@ gunicorn==23.0.0
|
|
46 |
idna==3.7
|
47 |
# via requests
|
48 |
importlib-metadata==8.4.0
|
49 |
-
# via
|
50 |
-
# dash
|
51 |
-
# flask
|
52 |
itsdangerous==2.2.0
|
53 |
# via flask
|
54 |
jinja2==3.1.4
|
@@ -57,33 +49,24 @@ markupsafe==2.1.5
|
|
57 |
# via
|
58 |
# jinja2
|
59 |
# werkzeug
|
60 |
-
mypy-extensions==1.0.0
|
61 |
-
# via black
|
62 |
nest-asyncio==1.6.0
|
63 |
# via dash
|
64 |
-
numpy==2.0
|
65 |
-
# via
|
|
|
|
|
66 |
packaging==24.1
|
67 |
# via
|
68 |
-
# black
|
69 |
# gunicorn
|
70 |
# plotly
|
71 |
pandas==2.2.2
|
72 |
# via vizro
|
73 |
-
pathspec==0.12.1
|
74 |
-
# via black
|
75 |
-
platformdirs==4.3.6
|
76 |
-
# via black
|
77 |
plotly==5.23.0
|
78 |
-
# via
|
79 |
-
# dash
|
80 |
-
# vizro
|
81 |
pydantic==2.8.2
|
82 |
# via vizro
|
83 |
pydantic-core==2.20.1
|
84 |
# via pydantic
|
85 |
-
pyflakes==3.2.0
|
86 |
-
# via autoflake
|
87 |
python-dateutil==2.9.0.post0
|
88 |
# via pandas
|
89 |
pytz==2024.1
|
@@ -92,21 +75,20 @@ requests==2.32.3
|
|
92 |
# via dash
|
93 |
retrying==1.3.4
|
94 |
# via dash
|
|
|
|
|
95 |
setuptools==73.0.1
|
96 |
-
# via
|
|
|
|
|
97 |
six==1.16.0
|
98 |
# via
|
99 |
# python-dateutil
|
100 |
# retrying
|
101 |
tenacity==9.0.0
|
102 |
# via plotly
|
103 |
-
tomli==2.1.0
|
104 |
-
# via
|
105 |
-
# autoflake
|
106 |
-
# black
|
107 |
typing-extensions==4.12.2
|
108 |
# via
|
109 |
-
# black
|
110 |
# dash
|
111 |
# pydantic
|
112 |
# pydantic-core
|
@@ -114,12 +96,13 @@ tzdata==2024.1
|
|
114 |
# via pandas
|
115 |
urllib3==2.2.2
|
116 |
# via requests
|
117 |
-
vizro==0.1.
|
118 |
# via -r requirements.in
|
119 |
werkzeug==3.0.4
|
120 |
# via
|
121 |
# dash
|
122 |
# flask
|
|
|
123 |
wrapt==1.16.0
|
124 |
# via vizro
|
125 |
zipp==3.20.0
|
|
|
2 |
# uv pip compile requirements.in -o requirements.txt
|
3 |
annotated-types==0.7.0
|
4 |
# via pydantic
|
|
|
|
|
|
|
|
|
5 |
blinker==1.8.2
|
6 |
# via flask
|
7 |
cachelib==0.9.0
|
|
|
11 |
charset-normalizer==3.3.2
|
12 |
# via requests
|
13 |
click==8.1.7
|
14 |
+
# via flask
|
|
|
|
|
15 |
dash==2.17.1
|
16 |
# via
|
17 |
# dash-ag-grid
|
|
|
40 |
idna==3.7
|
41 |
# via requests
|
42 |
importlib-metadata==8.4.0
|
43 |
+
# via dash
|
|
|
|
|
44 |
itsdangerous==2.2.0
|
45 |
# via flask
|
46 |
jinja2==3.1.4
|
|
|
49 |
# via
|
50 |
# jinja2
|
51 |
# werkzeug
|
|
|
|
|
52 |
nest-asyncio==1.6.0
|
53 |
# via dash
|
54 |
+
numpy==2.1.0
|
55 |
+
# via
|
56 |
+
# pandas
|
57 |
+
# vizro
|
58 |
packaging==24.1
|
59 |
# via
|
|
|
60 |
# gunicorn
|
61 |
# plotly
|
62 |
pandas==2.2.2
|
63 |
# via vizro
|
|
|
|
|
|
|
|
|
64 |
plotly==5.23.0
|
65 |
+
# via dash
|
|
|
|
|
66 |
pydantic==2.8.2
|
67 |
# via vizro
|
68 |
pydantic-core==2.20.1
|
69 |
# via pydantic
|
|
|
|
|
70 |
python-dateutil==2.9.0.post0
|
71 |
# via pandas
|
72 |
pytz==2024.1
|
|
|
75 |
# via dash
|
76 |
retrying==1.3.4
|
77 |
# via dash
|
78 |
+
ruff==0.6.1
|
79 |
+
# via vizro
|
80 |
setuptools==73.0.1
|
81 |
+
# via
|
82 |
+
# dash
|
83 |
+
# vizro
|
84 |
six==1.16.0
|
85 |
# via
|
86 |
# python-dateutil
|
87 |
# retrying
|
88 |
tenacity==9.0.0
|
89 |
# via plotly
|
|
|
|
|
|
|
|
|
90 |
typing-extensions==4.12.2
|
91 |
# via
|
|
|
92 |
# dash
|
93 |
# pydantic
|
94 |
# pydantic-core
|
|
|
96 |
# via pandas
|
97 |
urllib3==2.2.2
|
98 |
# via requests
|
99 |
+
vizro==0.1.20
|
100 |
# via -r requirements.in
|
101 |
werkzeug==3.0.4
|
102 |
# via
|
103 |
# dash
|
104 |
# flask
|
105 |
+
# vizro
|
106 |
wrapt==1.16.0
|
107 |
# via vizro
|
108 |
zipp==3.20.0
|