2024-06-26 13:09:50 发布
网友
我正跟随http://pynash.org/2013/03/06/timing-and-profiling/尝试进行内存分析,但是当我启动ipython时,出现了错误。。。你知道吗?谢谢
AttributeError: 'TerminalInteractiveShell' object has no attribute 'define_magic'
将ipython_config.py文件更改为使用以下命令可能会修复它
ipython_config.py
c.TerminalIPythonApp.extensions = [ 'line_profiler', 'memory_profiler', ] c.InteractiveShellApp.extensions = [ 'line_profiler', 'memory_profiler', ]
注意删除每个扩展的_ext
_ext
将
ipython_config.py
文件更改为使用以下命令可能会修复它c.TerminalIPythonApp.extensions = [ 'line_profiler', 'memory_profiler', ] c.InteractiveShellApp.extensions = [ 'line_profiler', 'memory_profiler', ]
注意删除每个扩展的
_ext
相关问题 更多 >
编程相关推荐