1
Jupyter note问题汇总
source link: https://blog.feelyou.top/posts/3572944970.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Jupyter note问题汇总
2021-04-21
10
jupyter note网页可打开,但是无法连接,大概率是jupyter note和tornado的版本不对应的问题。
[C 15:45:42.277 LabApp] Bad config encountered during initialization:
[C 15:45:42.277 LabApp] Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.
大家提出解决方案:
LANG=zn jupyter lab
可是这种方案会导致各类包引入,出现locale zn的错误,不可行!
My resolution:
- edit
/usr/local/anaconda2/lib/python2.7/site.py
file, change the functiondef setencoding
line 481 fromif 0
toif 1
, so it will callsys.setdefaultencoding(encoding)
- edit
/usr/local/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py
file, change line 2050, fromreturn value.decode('ascii', 'strict')
toreturn value.decode('UTF-8', 'strict')
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK