Skip to content

Commit b72985d

Browse files
committed
chore(py): Make py-format
1 parent 8f0c6bb commit b72985d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pkg-py/docs/_examples/multiple-datasets.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@
1515
qc_penguins.ui()
1616

1717
with ui.nav_panel("Titanic"):
18+
1819
@render.data_frame
1920
def titanic_table():
2021
return qc_titanic.df()
2122

23+
2224
with ui.nav_panel("Penguins"):
25+
2326
@render.data_frame
2427
def penguins_table():
2528
return qc_penguins.df()
2629

30+
2731
ui.page_opts(
2832
id="navbar",
2933
title="Multiple Datasets with querychat",

pkg-py/docs/_examples/titanic-dashboard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def fare():
3232
avg = qc.df()["fare"].mean()
3333
return f"${avg:.2f}"
3434

35+
3536
with ui.layout_columns():
3637
with ui.card():
3738
with ui.card_header():
@@ -59,6 +60,7 @@ def survival_by_class():
5960
labels={"pclass": "Class", "survived": "Survival Rate"},
6061
)
6162

63+
6264
with ui.layout_columns():
6365
with ui.card():
6466
ui.card_header("Age Distribution")
@@ -76,6 +78,7 @@ def fare_by_class():
7678
df = qc.df()
7779
return px.box(df, x="pclass", y="fare", color="survived")
7880

81+
7982
ui.page_opts(
8083
title="Titanic Survival Analysis",
8184
fillable=True,

0 commit comments

Comments
 (0)