pyhton-notebook主题颜色配置

作者: 引线小白-本文永久链接:http://www.limoncc.com/工程实践/2016-05-01-pyhton-notebook主题颜色配置/
知识共享许可协议: 本博客采用署名-非商业-禁止演绎4.0国际许可证

一、安装jupyter-themer插件
1
2
3
4
5
6
7
8
9
10
11
12
13
➜  ~ cd anaconda
➜ anaconda sudo pip install jupyter-themer
Password:
The directory '/Users/xiaobai/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/xiaobai/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting jupyter-themer
Downloading jupyter-themer-0.3.0.tar.gz (40kB)
100% |████████████████████████████████| 40kB 35kB/s
Requirement already satisfied: jupyter in ./lib/python3.6/site-packages (from jupyter-themer)
Requirement already satisfied: notebook in ./lib/python3.6/site-packages (from jupyter-themer)
Installing collected packages: jupyter-themer
Running setup.py install for jupyter-themer ... done
Successfully installed jupyter-themer-0.3.0
二、设定主题
1、语法介绍:
1
2
3
4
5
6
7
%语法格式如下
usage: jupyter-themer [-c COLOR, --color COLOR]
[-l LAYOUT, --layout LAYOUT]
[-t TYPOGRAPHY, --typography TYPOGRAPHY]
[-f CODE_FONT, --font CODE_FONT]
[-b BACKGROUND, --background BACKGROUND]
[-s OPTION, --show OPTION]
2、显示所有可选颜色主题:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
➜  anaconda jupyter-themer --show color
3024-day
3024-night
abcdef
ambiance
base16-dark
base16-light
blackboard
cobalt
colorforth
dracula
eclipse
elegant
erlang-dark
icecoder
lesser-dark
liquibyte
material
mbo
mdn-like
midnight
monokai
neat
neo
night
paraiso-dark
paraiso-light
pastel-on-dark
rubyblue
seti
solarized-dark
solarized-light
the-matrix
tomorrow-night-bright
tomorrow-night-eighties
ttcn
twilight
vibrant-ink
xq-dark
xq-light
yeti
zenburn
➜ anaconda
3、设定monokai主题
1
2
➜  anaconda jupyter-themer -c monokai
Custom jupyter notebook theme created - refresh any open jupyter notebooks to apply theme.

效果如下

python-notebook


版权声明
引线小白创作并维护的柠檬CC博客采用署名-非商业-禁止演绎4.0国际许可证。
本文首发于柠檬CC [ http://www.limoncc.com ] , 版权所有、侵权必究。
本文永久链接http://www.limoncc.com/工程实践/2016-05-01-pyhton-notebook主题颜色配置/

予汝玫瑰,渡人沃土。