萌混过关 2018-02-10 07:54 采纳率: 100%
浏览 2836
已采纳

Jupyter Notebook的主题编码问题

最近因为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

  • 写回答

1条回答 默认 最新

  • threenewbee 2018-02-10 15:41
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 51寻迹小车定点寻迹
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
  • ¥15 麒麟V10桌面版SP1如何配置bonding
  • ¥15 Marscode IDE 如何预览新建的 HTML 文件