In [1]:
%pylab inline
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-d4543581fa9d> in <module>()
----> 1 get_ipython().magic('pylab inline')
C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in magic(self, arg_s)
2203 magic_name, _, magic_arg_s = arg_s.partition(' ')
2204 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2205 return self.run_line_magic(magic_name, magic_arg_s)
2206
2207 #-------------------------------------------------------------------------
C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line)
2124 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2125 with self.builtin_trap:
-> 2126 result = fn(*args,**kwargs)
2127 return result
2128
C:\Python34\lib\site-packages\IPython\core\magics\pylab.py in pylab(self, line)
C:\Python34\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:\Python34\lib\site-packages\IPython\core\magics\pylab.py in pylab(self, line)
134 import_all = not args.no_import_all
135
--> 136 gui, backend, clobbered = self.shell.enable_pylab(args.gui, import_all=import_all)
137 self._show_matplotlib_backend(args.gui, backend)
138 print ("Populating the interactive namespace from numpy and matplotlib")
C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in enable_pylab(self, gui, import_all, welcome_message)
2980 from IPython.core.pylabtools import import_pylab
2981
-> 2982 gui, backend = self.enable_matplotlib(gui)
2983
2984 # We want to prevent the loading of pylab to pollute the user's
C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in enable_matplotlib(self, gui)
2929 """
2930 from IPython.core import pylabtools as pt
-> 2931 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
2932
2933 if gui != 'inline':
C:\Python34\lib\site-packages\IPython\core\pylabtools.py in find_gui_and_backend(gui, gui_select)
250 """
251
--> 252 import matplotlib
253
254 if gui and gui != 'auto':
C:\Python34\lib\site-packages\matplotlib\__init__.py in <module>()
177 # cbook must import matplotlib only within function
178 # definitions, so it is safe to import from it here.
--> 179 from matplotlib.cbook import is_string_like
180 from matplotlib.compat import subprocess
181
C:\Python34\lib\site-packages\matplotlib\cbook.py in <module>()
30 from weakref import ref, WeakKeyDictionary
31
---> 32 import numpy as np
33 import numpy.ma as ma
34
ImportError: No module named 'numpy'
Content source: dykega/CS341
Similar notebooks: