ipython/ipython — pull request #1855 by minrk (2012-06-04 23:57:15+00:00)
Title: %%script and %%file magics

As discussed on the ML, a few more basic cell magics, as requested:

* `%%file` writes to a file (-f to force overwrite)
* `%%script` runs a cell with a particular script

The ScriptMagics also defines a few common magics that wrap `%%script` with common interpreters, such as `%%bash` by default, and this list, as well as the specific path for each, is configurable.

I still have to do some testing, particularly on Windows, but it seems ready for public eyes anyway.

For fun, the `%%script` magic is also presented as `%%!`, but I am happy to remove that if we don't like it.