pythonprofilers / memory_profiler

Monitor Memory usage of Python code
http://pypi.python.org/pypi/memory_profiler
Other
4.34k stars 376 forks source link

memory_profiler doesn't support function which is defined in ipython #155

Open lxkaka opened 7 years ago

lxkaka commented 7 years ago

This is the error message: ERROR: Could not find file NOTE: %mprun can only be used on functions defined in physical files, and not in the IPython environment. Do I use it wrong? or this is the feature of memory_profiler?

astrojuanlu commented 6 years ago

The NOTE itself explains the situation :) This is a feature but patches to support functions defined in IPython are welcome.

steveepreston commented 1 week ago

is there any update guys? still not able to use memory_profiler in cloud jupyter notebooks

related: https://stackoverflow.com/questions/74192299/