In [1]:
# Run some setup code for this notebook.

import random
import numpy as np
import pandas as pd
import os, sys
import matplotlib.pyplot as plt
import datetime as dttm
import pdb

# This is a bit of magic to make matplotlib figures appear inline in the
# notebook rather than in a new window.
%matplotlib inline
plt.rcParams['figure.figsize'] = (10.0, 8.0) # set default size of plots
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'

# Some more magic so that the notebook will reload external python modules;
# see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython
%load_ext autoreload
%autoreload 2

from softmax import *


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-ef6f65889152> in <module>()
      5 import pandas as pd
      6 import os, sys
----> 7 import matplotlib.pyplot as plt
      8 import datetime as dttm
      9 import pdb

/home/xu/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/pyplot.py in <module>()
     95 
     96 from matplotlib.backends import pylab_setup
---> 97 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
     98 
     99 @docstring.copy_dedent(Artist.findobj)

/home/xu/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/backends/__init__.pyc in pylab_setup()
     23         backend_name = 'matplotlib.backends.%s'%backend_name.lower()
     24     backend_mod = __import__(backend_name,
---> 25                              globals(),locals(),[backend_name])
     26 
     27     # Things we pull in from all backends

/home/xu/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py in <module>()
     21 
     22 from backend_agg import FigureCanvasAgg
---> 23 import backend_wx    # already uses wxversion.ensureMinimal('2.8')
     24 from backend_wx import FigureManager, FigureManagerWx, FigureCanvasWx, \
     25     FigureFrameWx, DEBUG_MSG, NavigationToolbar2Wx, error_msg_wx, \

/home/xu/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py in <module>()
     71     backend_version = wx.VERSION_STRING
     72 except ImportError:
---> 73     raise ImportError(missingwx)
     74 
     75 # Extra version check in case wxversion lacks AlreadyImportedError;

ImportError: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8

In [ ]: