Press ESC to close

For Python developers who want to build , traditional options like:

def add_todo(): if text.value.strip(): todos.value = todos.value + ["text": text.value, "done": False] text.value = ""

import solara

is a pure Python, React-style web framework for building scalable and interactive web apps, specifically designed for data scientists and Python developers. It is built on top of React and FastAPI , but you don't need to know any JavaScript or HTML to use it.

solara.InputText(label="New todo", value=text, on_value_change=text.set) solara.Button("Add", on_click=add_todo)

todos = solara.reactive([])

FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install solara COPY . . CMD ["solara", "run", "app.py", "--host=0.0.0.0", "--port=8765"]

Discover more from Cliqist

Subscribe now to keep reading and get access to the full archive.

Continue Reading