[IPython-user] Trouble with Robert Kern's Example

Travis E. Oliphant oliphant.travis at ieee.org
Tue Jan 24 17:11:40 CST 2006

Using IPython 0.7.0 I'm getting the following error:


/usr/lib/python2.4/site-packages/IPython/Magic.py in 
magic_logstart(self, parameter_s)
     985         rc = self.shell.rc
--> 986         logger = self.shell.logger
     988         # if no args are given, the defaults set in the logger 
constructor by

AttributeError: 'MatplotlibShell' object has no attribute 'logger'
WARNING: Failure executing code: "__IPYTHON__.magic_logstart(__cmd % 

when I run

ipython -pylab -profile ee771


ipythonrc-ee771 is

include ipythonrc
logfile ''
execute import time
execute __cmd = '/home/oliphant/Classes/ee771/logfiles/%s.log rotate'
execute __IPYTHON__.magic_logstart(__cmd % time.strftime('%Y-%m-%d'))

(Same error with _IP.magic_logstart...)

Is this example supposed to work?  What am I doing wrong?

What is the recommended way to put magic commands in your profile?


More information about the IPython-user mailing list