ipython/ipython — pull request #4115 by takluyver (2013-08-27 00:52:51+00:00)
Title: Update docs on declaring a magic function

The extension docs were telling people to use `define_magic()`, but the docstring says it is deprecated, and it only supports line magics.

The replacement seems to be `register_magic_function()`. This directs people to that, and ensures that it is documented.