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) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -