AI---Jupyter金沙官网线上 Notebook 编辑器美化

汇总系列:https://www.cnblogs.com/dunitian/p/4822808.html#ai

Jupyter Notebook的主题编码问题
最近因为jupyter notebook的白色原装界面太难看了,特别是字体。然后,就install
Jupyter themes; 一切都OK,themes也下载下来了,进行 jt -l 也是没问题的,正常
显示出了已经有的各个主题了。
最后,进行 jt -t 主题名 启用时,报错了。无法切换主题:

装Anaconda基本上各种包就全了,Notebook编辑器字体还是有点看不惯,美化一下:

(C:UsersAdministratorAnaconda3) C:UsersAdministrator>jt -l
Available Themes:
chesterish
grade3
gruvboxd
gruvboxl
monokai
oceans16
onedork
solarizedd
solarizedl

金沙官网线上 1

(C:UsersAdministratorAnaconda3) C:UsersAdministrator>jt -t grade3
Traceback (most recent call last):
File "c:usersadministratoranaconda3librunpy.py", line 193, in run_module_as_main
"
_main__", mod_spec)
File "c:users金沙官网线上,administratoranaconda3librunpy.py", line 85, in run_code
exec(code, run_globals)
File "C:UsersAdministratorAnaconda3Scriptsjt.exe
_main__.py", line 9, in
File "c:usersadministratoranaconda3libsite-packagesjupyterthemes__init__.py", line 307, in main
dfonts=args.defaultfonts)
File "c:usersadministratoranaconda3libsite-packagesjupyterthemes__init__.py", line 103, in install_theme
style_css = stylefx.less_to_css(style_less)
File "c:usersadministratoranaconda3libsite-packagesjupyterthemesstylefx.py", line 63, in less_to_css
style_css = lesscpy.compile
File "c:usersadministratoranaconda3libsite-packageslesscpy__init__.py", line 18, in compile
p.parse(file=file)
File "c:usersadministratoranaconda3libsite-packageslesscpylesscparser.py", line 154, in parse
file, lexer=self.lex, debug=debuglevel)
File "c:usersadministratoranaconda3libsite-packagesplyyacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "c:usersadministratoranaconda3libsite-packagesplyyacc.py", line 1024, in parseopt_notrack
lexer.input
File "c:usersadministratoranaconda3libsite-packageslesscpylessclexer.py", line 475, in input
self.lexer.input
UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 44256: illegal multibyte sequence

D:Program Files (x86) style="color: #ff6600;">Anaconda3Libsite-packagesnotebookstaticcustomcustom.css

单独安装了Python的,到安装目录下:/lib/site-packages/notebook/static/custom/custom.css

美化一下:

本文由金沙官网线上发布于操作系统,转载请注明出处:AI---Jupyter金沙官网线上 Notebook 编辑器美化

您可能还会对下面的文章感兴趣: