最近因为jupyter notebook的白色原装界面太难看了,特别是字体。然后,就install
Jupyter themes; 一切都OK,themes也下载下来了,进行 jt -l 也是没问题的,正常
显示出了已经有的各个主题了。
最后,进行 jt -t 主题名 启用时,报错了。无法切换主题:
(C:\Users\Administrator\Anaconda3) C:\Users\Administrator>jt -l
Available Themes:
chesterish
grade3
gruvboxd
gruvboxl
monokai
oceans16
onedork
solarizedd
solarizedl
(C:\Users\Administrator\Anaconda3) C:\Users\Administrator>jt -t grade3
Traceback (most recent call last):
File "c:\users\administrator\anaconda3\lib\runpy.py", line 193, in run_module_as_main
"_main__", mod_spec)
File "c:\users\administrator\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\Anaconda3\Scripts\jt.exe\_main__.py", line 9, in
File "c:\users\administrator\anaconda3\lib\site-packages\jupyterthemes__init__.py", line 307, in main
dfonts=args.defaultfonts)
File "c:\users\administrator\anaconda3\lib\site-packages\jupyterthemes__init__.py", line 103, in install_theme
style_css = stylefx.less_to_css(style_less)
File "c:\users\administrator\anaconda3\lib\site-packages\jupyterthemes\stylefx.py", line 63, in less_to_css
style_css = lesscpy.compile(tempfile)
File "c:\users\administrator\anaconda3\lib\site-packages\lesscpy__init__.py", line 18, in compile
p.parse(file=file)
File "c:\users\administrator\anaconda3\lib\site-packages\lesscpy\lessc\parser.py", line 154, in parse
file, lexer=self.lex, debug=debuglevel)
File "c:\users\administrator\anaconda3\lib\site-packages\ply\yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "c:\users\administrator\anaconda3\lib\site-packages\ply\yacc.py", line 1024, in parseopt_notrack
lexer.input(input)
File "c:\users\administrator\anaconda3\lib\site-packages\lesscpy\lessc\lexer.py", line 475, in input
self.lexer.input(f.read())
UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 44256: illegal multibyte sequence