def load_ipython_extension(ip):

    MemoryProfilerMagics.register_magics(ip)
This is called to load the module as an IPython extension.
dataset/ETHPy150Open fabianp/memory_profiler/memory_profiler.py/load_ipython_extension