Skip to content

Commit 460e1ab

Browse files
author
Gordon Shotwell
authored
Remove output from template app (#775)
1 parent e92e1e9 commit 460e1ab

File tree

1 file changed

+1
-2
lines changed
  • shiny/api-examples/template

1 file changed

+1
-2
lines changed

shiny/api-examples/template/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from shiny import App, render, ui
22

33
app_ui = ui.page_fluid(
4-
ui.h2("Hello Shiny!"),
4+
ui.panel_title("Hello Shiny!"),
55
ui.input_slider("n", "N", 0, 100, 20),
66
ui.output_text_verbatim("txt"),
77
)
88

99

1010
def server(input, output, session):
11-
@output
1211
@render.text
1312
def txt():
1413
return f"n*2 is {input.n() * 2}"

0 commit comments

Comments
 (0)