1

Jupyter note问题汇总

 2 years ago
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.
neoserver,ios ssh client

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:

  1. edit /usr/local/anaconda2/lib/python2.7/site.py file, change the function def setencoding line 481 from if 0 to if 1, so it will call sys.setdefaultencoding(encoding)
  2. edit /usr/local/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py file, change line 2050, from return value.decode('ascii', 'strict') to return value.decode('UTF-8', 'strict')

多版本:https://blog.csdn.net/C_chuxin/article/details/82690830


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK