I just updated to 0.83 and I am now having a problem with Ipython. Running the following code as a script produces the error message below. I am running Python 2.3.5 on Windows XP with Ipython 0.6.15. I get the same message regardless of whether or not I set ion().
How do I fix this?
Thanks,
Ryan
import pylab, scipy
x=scipy.arange(0,1,0.1)
y=scipy.sin(2*scipy.pi*x)
#pylab.ion()
pylab.figure(1)
pylab.plot(x,y)
In [13]: run pylab_test.py
···
---------------------------------------------------------------------------
exceptions.AttributeError Traceback (most recent call
last)
E:\GT\Research\Samii\modeling\TwoD\TMM_2D_scipy\<console>
C:\Python23\Lib\site-packages\IPython\iplib.py in ipmagic(arg_s)
140 else:
141 magic_args = __IPYTHON__.var_expand(magic_args)
--> 142 return fn(magic_args)
143
144 def ipalias(arg_s):
C:\Python23\Lib\site-packages\IPython\Shell.py in magic_run(self, parameter_s)
474
475 def magic_run(self,parameter_s=''):
--> 476 Magic.magic_run(self,parameter_s,runner=self.mplot_exec)
477
478 # Fix the docstring so users see the original as well
C:\Python23\Lib\site-packages\IPython\Magic.py in magic_run(self, parameter_s, r
unner)
1381 self.shell.user_ns.update(prog_ns)
1382 finally:
-> 1383 sys.argv = save_argv
1384 return stats
1385
C:\Python23\Lib\site-packages\IPython\Shell.py in mplot_exec(self, fname, *where
, **kw)
465 self.matplotlib.interactive(isInteractive)
466 # make rendering call now, if the user tried to do it
--> 467 if self.pylab.draw_if_interactive.called:
468 self.pylab.draw()
469 self.pylab.draw_if_interactive.called = False
AttributeError: 'function' object has no attribute 'called'