import warnings

def load_ipython_extension(ip):
    msg = ("The rmagic extension has been moved to rpy2. "
           "After installing rpy2, you can load rmagic with the "
           "following command: '%load_ext rpy2.ipython'.")
    warnings.warn(msg, Warning, stacklevel=2)
