-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpenguins_ui_outputs.py
34 lines (30 loc) · 1.18 KB
/
penguins_ui_outputs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""
Purpose: Display outputs for Penguins dataset.
Choose the correct ui method for the type of output you want to display.
Provide the exact name of the server function that will provide the output.
"""
from shiny import ui
def get_penguins_outputs():
return ui.panel_main(
ui.h2("Main Panel with Reactive Output"),
ui.tags.hr(),
ui.tags.section(
ui.h3("Penguins: Seaborn Scatter Plot (filtered by Body Mass)"),
ui.output_plot("penguins_scatterplot1"),
ui.tags.hr(),
ui.h3("Filtered Penguins Table (filtered by Body Mass)"),
ui.output_text("penguins_filtered_record_count_string"),
ui.output_table("penguins_filtered_table"),
ui.tags.hr(),
ui.h3("Penguins: Seaborn Pair Plots"),
ui.output_plot("penguins_pairplots"),
ui.tags.hr(),
ui.h3("Penguins Table Summary Statistics"),
ui.output_text_verbatim("penguins_stats"),
ui.tags.hr(),
ui.h3("Penguins Table"),
ui.output_text("penguins_record_count_string"),
ui.output_table("penguins_table"),
ui.tags.hr(),
),
)