File size: 345 Bytes
2b610b2
6e00250
80269f1
1c432ba
 
80269f1
 
 
1c432ba
491b087
1c432ba
 
 
80269f1
 
 
1c432ba
ca21d8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from shiny import App, render, ui, run_app

app_ui = ui.page_fluid(
    ui.input_slider("n", "N", 0, 100, 20),
    ui.output_text_verbatim("txt"),
)


def server(input, output, session):
    @output
    @render.text
    def txt():
        return f"n*2 is {input.n() * 2}"


app = App(app_ui, server)

run_app(app, host="", port=7860, debug=True)