Build a Todo App
In this section, we will work on building a Todo App together so that our wind turbine technicians can keep track of their tasks. As a team, we will collaborate to create an app that provides the following functionality:
Adding, removing, and clearing all tasks
Marking a task as solved
Keeping track of the number of completed tasks
Disabling or hiding buttons when necessary
:::{note} When we ask everyone to run the code in the sections below, you may either execute the code directly in the Panel docs via the green run button, in a cell in a notebook, or in a file app.py
that is served with panel serve app.py --dev
. :::
:::{dropdown} Requirements
:::
:::{dropdown} Code
:::
Install the Requirements
::::{tab-set}
:::{tab-item} pip :sync: pip
:::
:::{tab-item} conda :sync: conda
:::
::::
Explanation
COMING UP
Let's perform the following actions:
Remove one task
Remove all tasks
Add 3 Tasks
Check 1 of 3 tasks and see the
status_message
update accordingly.
:::{note} A todo app can be built in many other ways. The main purpose of this example is for all of us to acquire the basic skills needed to develop stateful, dynamically updating apps like this one. :::
Recap
In this section, we have built a Todo App with many features. We needed to combine many of the things we have learned so far.