python - UnicodeDecodeError: 'ascii' codec can't decode byte ... in position ... ordinal not in range(128) -


i've read topics similar question, none of fits problems. i'm working in ipython notebook , have following chunk of code:

import scipy sp %pylab inline 

when try run it, fails on second line error in title. why that?

because of % before pylab guess have define encoding utf8.


like:

import sys    reload(sys)   sys.setdefaultencoding('utf8') 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -