def unload_ipython_extension(ip):
    """Reload the extension in IPython."""
    if 'SQL' in ip.magics_manager.registry:
        del ip.magics_manager.registry['SQL']
    if 'SQL' in ip.config:
        del ip.config['SQL']
