Py.Cafe

mariobuikhuizen/

panel-hello-world-text-input-0

Hello World Text Input

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import panel as pn

pn.extension(template="fast")

widget = pn.widgets.TextInput(value="world")


def hello_world(text):
    return f"Hello {text}!"


pn.Row(widget, pn.bind(hello_world, widget)).servable()