This was a known bug in line_profiler that is fixed with the 2.0 release. Try upgrading to line_profiler==2.0 and let us know if there's still a problem.
On Thursday, September 1, 2016 at 7:03:31 AM UTC-7, Travis Scrimshaw wrote: > > I just installed the line profiler because I want to do %lprun, but this > is broken in 7.4.beta2 (likely is beta0) > > ┌────────────────────────────────────────────────────────────────────┐ > │ SageMath version 7.4.beta2, Release Date: 2016-08-26 │ > │ Type "notebook()" for the browser-based notebook interface. │ > │ Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ > ┃ Warning: this is a prerelease version, and it may be unstable. ┃ > ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ > from[SageTerminalApp] WARNING | Error in loading extension: line_profiler > Check your config files in /home/travis/.sage/ipython-5.0.0/ > profile_default > Traceback (most recent call last): > File > "/home/travis/sage-build/local/lib/python2.7/site-packages/IPython/core/shellapp.py" > , line 246, in init_extensions > self.shell.extension_manager.load_extension(ext) > File > "/home/travis/sage-build/local/lib/python2.7/site-packages/IPython/core/extensions.py" > , line 85, in load_extension > if self._call_load_ipython_extension(mod): > File > "/home/travis/sage-build/local/lib/python2.7/site-packages/IPython/core/extensions.py" > , line 132, in _call_load_ipython_extension > mod.load_ipython_extension(self.shell) > File > "/home/travis/sage-build/local/lib/python2.7/site-packages/line_profiler.py" > , line 372, in load_ipython_extension > ip.define_magic('lprun', magic_lprun) > AttributeError: 'SageTerminalInteractiveShell' object has no attribute > 'define_magic' > > Volker and IPython upgrade people, please fix this (and %attach). > > Travis > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.