TurboGears also provides a web-based version of the interactive Python prompt. You can play with your model objects, add data, and even run adhoc tests from the WebConsole.
The Console also imports your model and sets up your database connection automatically so you can just get down to work. Admittedly, there's nothing you can do in the Console that you couldn't do from the tg-admin shell.
As you can see in Figure 19.8, the Console gives you the opportunity to create multi-line Python statements, or quick one liners.
Figure 19.8. WebConsole