Py.Cafe

Ryan-Protege/

panel-hello-world-0

Hello World Interactive App

DocsPricing
  • .git/
  • attached_assets/
  • templates/
  • .gitignore
  • .replit
  • DOCUMENTATION.md
  • FEATURES.md
  • FUTURE_ENHANCEMENTS.md
  • PROJECT_COMPLIANCE.md
  • README.md
  • app.py
  • cholera_training_data.csv
  • confusion_matrix.png
  • enhanced_predictor.py
  • future_predictor.py
  • interactive_predictor.py
  • main.py
  • performance_optimizer.py
  • predict_next_outbreak.py
  • pyproject.toml
  • requirements.txt
  • test_unicef_import.py
  • unicef_data_fetcher.py
  • uv.lock
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()