Reputation: 1920
I am following http://pynash.org/2013/03/06/timing-and-profiling/ exactly to trying to do memory profiling, but when I started ipython, I got the error... Any idea? Thanks
AttributeError: 'TerminalInteractiveShell' object has no attribute 'define_magic'
Upvotes: 0
Views: 87
Reputation: 429
Changing the ipython_config.py
file to use the following may fix it.
c.TerminalIPythonApp.extensions = [
'line_profiler',
'memory_profiler',
]
c.InteractiveShellApp.extensions = [
'line_profiler',
'memory_profiler',
]
Note the removal of the _ext
for each extension.
Upvotes: 1