load memory profiler into ipython
# ~/.ipython/profile_default/startup/load_memit.py # this loads %memit into ipython import memory_profiler import IPython memory_profiler.load_ipython_extension(IPython.get_ipython())