jupyter notebook 修改前端样式


jupyter notebook主题

作者的GitHub地址:https://github.com/dunovank/jupyter-themes
个人觉得这款比较好看oceans16

pip3 install --upgrade jupyterthemes 安装
jt -l 获取主题名称
jt -t 主题名称 -T -N 更改主题,第一次得重启才生效
jt -t oceans16 -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -N
jt -r 恢复为默认主题

修改css和js

centos7下可用find -name custom命令找到jupyter notebook样式文件在哪

find -name custom
./usr/local/lib/python3.6/site-packages/notebook/static/custom

然后用浏览器查看自己要更改的地方,在custom.css文件修改即可

要加载js文件的话可以考虑修改page.html里面的内容,同样用find找page.html的目录

/usr/local/lib/python3.6/site-packages/notebook/templates/

然后要加什么js自己添加就可以了


最终效果


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM