The developers of IPython have build the IPython Notebook, a system inspired by Mathematica that allows you to create “executable documents.” IPython Notebooks can integrate:
into a single document that captures the flow of an exploration and can be exported as a formatted report or an executable script.
You can run a cell by: