Examples
Hello World
Display a simple “Hello, World!” message using Preswald:
Data Viewer
Connect to a CSV file and display the data using Preswald’s viewer:
Connect to a JSON file and display the data using Preswald’s viewer:
Interactive Dashboard
Create an interactive dashboard where users can control how many rows of data to display:
Automatic Reactivity
Preswald automatically detects dependencies between top level expressions and selectively recomputes only the parts of your script that need to update.
You can also include side effects like logging:
Preswald will:
- Lift each top level statement into an atom
- Automatically track dependencies like double -> base
- Ensure logger.info(…) runs again only when val changes
No decorators or workflow setup required, just plain Python
Tuple Unpacking + Reactive Consumers
Preswald also supports tuple unpacking and reactive consumers:
Learn More
To explore these examples in depth and discover additional use cases, check out the Preswald Examples. You’ll find comprehensive guides and example projects to help you make the most of Preswald.