This document reviews the status of the magic command system in IPython and proposes an extension of magics to work in multiline contexts, at a 'cell' level. The most obvious use of this proposed extension will be the notebook, but the extension will similarly work in the Qt console and even at the terminal.
In the spirit of Python PEPs, this document is marked as IPEP 1, the first 'IPython Enhancement Proposal'.