Spaces:
Runtime error
Runtime error
Commit
·
3244f03
1
Parent(s):
197421b
Bump version
Browse files- app.py +12 -15
- requirements.txt +3 -37
app.py
CHANGED
@@ -20,8 +20,8 @@ species.sort()
|
|
20 |
|
21 |
app_ui = x.ui.page_fillable(
|
22 |
shinyswatch.theme.minty(),
|
23 |
-
|
24 |
-
|
25 |
# Artwork by @allison_horst
|
26 |
ui.input_selectize(
|
27 |
"xvar",
|
@@ -42,15 +42,15 @@ app_ui = x.ui.page_fillable(
|
|
42 |
ui.input_switch("by_species", "Show species", value=True),
|
43 |
ui.input_switch("show_margins", "Show marginal plots", value=True),
|
44 |
),
|
45 |
-
ui.
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
51 |
),
|
52 |
-
fill=True,
|
53 |
-
fillable=True,
|
54 |
),
|
55 |
)
|
56 |
|
@@ -94,17 +94,14 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
94 |
title,
|
95 |
count,
|
96 |
{"class_": "pt-1 pb-0"},
|
97 |
-
showcase=x.ui.
|
98 |
ui.tags.img(
|
99 |
{"style": "object-fit:contain;"},
|
100 |
src=showcase_img,
|
101 |
-
)
|
102 |
-
item=True,
|
103 |
),
|
104 |
theme_color=None,
|
105 |
style=f"background-color: {bgcol};",
|
106 |
-
height="90px",
|
107 |
-
full_screen=True,
|
108 |
)
|
109 |
|
110 |
if not input.by_species():
|
|
|
20 |
|
21 |
app_ui = x.ui.page_fillable(
|
22 |
shinyswatch.theme.minty(),
|
23 |
+
ui.layout_sidebar(
|
24 |
+
ui.panel_sidebar(
|
25 |
# Artwork by @allison_horst
|
26 |
ui.input_selectize(
|
27 |
"xvar",
|
|
|
42 |
ui.input_switch("by_species", "Show species", value=True),
|
43 |
ui.input_switch("show_margins", "Show marginal plots", value=True),
|
44 |
),
|
45 |
+
ui.panel_main(
|
46 |
+
ui.output_ui("value_boxes"),
|
47 |
+
x.ui.output_plot("scatter", fill=True),
|
48 |
+
ui.help_text(
|
49 |
+
"Artwork by ",
|
50 |
+
ui.a("@allison_horst", href="https://twitter.com/allison_horst"),
|
51 |
+
class_="text-end",
|
52 |
+
),
|
53 |
),
|
|
|
|
|
54 |
),
|
55 |
)
|
56 |
|
|
|
94 |
title,
|
95 |
count,
|
96 |
{"class_": "pt-1 pb-0"},
|
97 |
+
showcase=x.ui.as_fill_item(
|
98 |
ui.tags.img(
|
99 |
{"style": "object-fit:contain;"},
|
100 |
src=showcase_img,
|
101 |
+
)
|
|
|
102 |
),
|
103 |
theme_color=None,
|
104 |
style=f"background-color: {bgcol};",
|
|
|
|
|
105 |
)
|
106 |
|
107 |
if not input.by_species():
|
requirements.txt
CHANGED
@@ -1,38 +1,4 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
asgiref==3.6.0
|
4 |
-
click==8.1.3
|
5 |
-
contextvars==2.4
|
6 |
-
contourpy==1.0.7
|
7 |
-
cycler==0.11.0
|
8 |
-
fonttools==4.39.3
|
9 |
-
h11==0.14.0
|
10 |
-
htmltools==0.2.1
|
11 |
-
idna==3.4
|
12 |
-
immutables==0.19
|
13 |
-
kiwisolver==1.4.4
|
14 |
-
linkify-it-py==2.0.0
|
15 |
-
markdown-it-py==2.2.0
|
16 |
-
matplotlib==3.7.1
|
17 |
-
mdit-py-plugins==0.3.5
|
18 |
-
mdurl==0.1.2
|
19 |
-
numpy==1.24.2
|
20 |
-
packaging==23.1
|
21 |
-
pandas==2.0.1
|
22 |
-
Pillow==9.5.0
|
23 |
-
pyparsing==3.0.9
|
24 |
-
python-dateutil==2.8.2
|
25 |
-
python-multipart==0.0.6
|
26 |
-
pytz==2023.3
|
27 |
seaborn==0.12.2
|
28 |
-
|
29 |
-
shinyswatch==0.2.3
|
30 |
-
six==1.16.0
|
31 |
-
sniffio==1.3.0
|
32 |
-
starlette==0.26.1
|
33 |
-
typing_extensions==4.5.0
|
34 |
-
tzdata==2023.3
|
35 |
-
uc-micro-py==1.0.1
|
36 |
-
uvicorn==0.21.1
|
37 |
-
websockets==11.0.2
|
38 |
-
XStatic-bootswatch==3.3.7.0
|
|
|
1 |
+
shiny==0.5.1
|
2 |
+
shinyswatch==0.2.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
seaborn==0.12.2
|
4 |
+
matplotlib==3.7.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|