Use load_ipython_extension to register magic.