Chapter 14.1.2. MochiKit’s Interactive Shell

MochiKit provides an interactive shell demo that lets you interactively run JavaScript commands to do the same kind of ad-hoc testing and debugging you can do from the Python prompt. This is a great way to familiarize yourself with MochiKit and just play with the functions that it has to offer. Many of the examples given in this chapter are done from within the interactive interpreter.

The examples in this chapter can all work within the “mochiexamples” project that comes with this book (www.turbogearsbook.com). To try these examples, go into the mochiexamples directory and run the following:

  ./start-mochiexamples.py

You’ll find the interactive interpreter at http://localhost:8080/interpreter ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.