Adds python-version file

This commit is contained in:
procrastimax 2023-06-17 16:00:36 +02:00
parent fc3b0de89b
commit 93ecad3223
2 changed files with 18 additions and 0 deletions

1
.python-version Normal file
View File

@ -0,0 +1 @@
3.11.1

17
app.py Normal file
View File

@ -0,0 +1,17 @@
from shiny import App, render, ui
app_ui = ui.page_fluid(
ui.h2("Hello Shiny!"),
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)