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
Post a Comment