---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-7a475c8370c6> in <module>()
----> 1 get_ipython().magic(u'matplotlib inline')
2 from pycocotools.coco import COCO
3 from pycocoevalcap.eval import COCOEvalCap
4 import matplotlib.pyplot as plt
5 import skimage.io as io
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
2156 magic_name, _, magic_arg_s = arg_s.partition(' ')
2157 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2158 return self.run_line_magic(magic_name, magic_arg_s)
2159
2160 #-------------------------------------------------------------------------
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
2077 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2078 with self.builtin_trap:
-> 2079 result = fn(*args,**kwargs)
2080 return result
2081
<decorator-gen-104> in matplotlib(self, line)
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/magics/pylab.pyc in matplotlib(self, line)
98 print("Available matplotlib backends: %s" % backends_list)
99 else:
--> 100 gui, backend = self.shell.enable_matplotlib(args.gui)
101 self._show_matplotlib_backend(args.gui, backend)
102
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in enable_matplotlib(self, gui)
2935 """
2936 from IPython.core import pylabtools as pt
-> 2937 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
2938
2939 if gui != 'inline':
/home/meteorshub/anaconda3/envs/py27/lib/python2.7/site-packages/IPython/core/pylabtools.pyc in find_gui_and_backend(gui, gui_select)
270 """
271
--> 272 import matplotlib
273
274 if gui and gui != 'auto':
ImportError: No module named matplotlib