def setup(): magic = Magic(shell=ip) ip.register_magics(magic)
def register_magic(): magic = Magic(shell=ip)