Circle Basics (Demo)
Calculate circle area and circumference from a single diameter input. This is a minimal demo for showing the Python-to-UI workflow.
Tool Purpose & README
Purpose of This Tool
This dead-simple demo shows the full workflow with one input and two outputs:
- Loading a single Python module from
/pycalcs/. - Using
utils.pyto parse the docstring. - Populating input tooltips from the docstring.
- Rendering results + equations from the
Returnsblock.
To build your own tool, copy this HTML file, create a new Python module, and update the JS config constants.
Inputs
Key Results
Enter a diameter and press Calculate.
Visualization
No visualization for this demo yet.
Chart checklist
- Axes are labeled and include units.
- Legend is present and matches the plotted series.
- Scale type is correct and stated (linear or log).
- Plotted values are finite (no NaN or infinity gaps).
- Ranges look physically plausible for the inputs.
- Annotations reflect the correct numeric values.
Underlying Principles
General principles and theory will be loaded here from the docstring.