Skip to content

Commit

Permalink
docs(index): Fix sine example and use layout_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Nov 7, 2024
1 parent f2646e9 commit dbd8d87
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ import matplotlib.pyplot as plt
app_ui = ui.page_fluid(
ui.layout_sidebar(
ui.panel_sidebar(
ui.sidebar(
ui.input_slider("period", "Period", 0.5, 4, 1, step=0.5),
ui.input_slider("amplitude", "Amplitude", 0, 2, 1, step=0.25),
ui.input_slider("shift", "Phase shift", 0, 2, 0, step=0.1),
),
ui.panel_main(
ui.output_plot("plot"),
),
ui.output_plot("plot"),
),
)
Expand Down Expand Up @@ -130,13 +128,9 @@ from shiny import App, render, ui, Inputs, Outputs, Session
from utils import square
app_ui = ui.page_fluid(
ui.row(
ui.column(6,
ui.input_slider("n", "Make a Shiny square:", min=0, max=6, value=2)
),
ui.column(6,
ui.output_ui("images"),
)
ui.layout_columns(
ui.input_slider("n", "Make a Shiny square:", min=0, max=6, value=2),
ui.output_ui("images"),
)
)
Expand Down

0 comments on commit dbd8d87

Please sign in to comment.