Backport PR
#4115: Update docs on declaring a magic function...
Backport PR
#4115: 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.