启动jupyter notebook : 打开控制台输入命令 jupyter notebook 安装Jupyter notebook extensions扩展插件: 1、pip install jupyter_contrib_nbextensions 或者 1、pip install https://github.com/jupyter-contrib/jupyter_contrib_nbextensions/tarball/master 2、jupyter contrib nbextension install --user 3、安装后重新启动控制台窗口: 再次执行命令jupyter notebook 便可以看到在web端看到如下窗口:
VIM binding:该插件使得jupyter notebook集成VIM环境,可以使用VIM所有快捷键进行撸代码; Codefolding :既可以对标题进行折叠,也可以对代码进行折叠,观看方便; ExecuteTime : jupyter支持分步调试,所以该插件支持显示每步的执行时间; Notify:这是jupyter Notebook中的通知机制,耗时任务当离开时完成时可自动提示。 jupyter notebook主题背景和字体更改
舒适的撸代码主题背景无论对于眼睛还是心情都有重要作用,接下来我们就安装选择适合自己的主题背景和字体
在控制台下用pip 安装jupyter-themes : pip install --upgrade jupyterthemes 使用如下命令查看所有可用的主题:
在CMD中输入jt -l
Available Themes:
chesterish
grade3
monokai
oceans16
onedork
solarizedd
solarizedl
再可以使用如下命令选择适合自己的主题背景 username$ jt -t grade3(主题名称) 1 更改字体可以通过如下命令 username$ jt -f inconsolata(字体名称)
options | arg | default |
---|---|---|
Usagehelp | -h | – |
List Themes | -l | – |
Theme Name to Install | -t | – |
Code Font | -f | – |
Code Font-Size | -fs | 11 |
Notebook Font | -nf | – |
Notebook Font Size | -nfs | 13 |
Text/MD Cell Font | -tf | – |
Text/MD Cell Fontsize | -tfs | 13 |
Pandas DF Fontsize | -dfs | 9 |
Output Area Fontsize | -ofs | 8.5 |
Mathjax Fontsize (%) | -mathfs | 100 |
Intro Page Margins | -m | auto |
Cell Width | -cellw | 980 |
Line Height | -lineh | 170 |
Cursor Width | -cursw | 2 |
Cursor Color | -cursc | – |
Alt Prompt Layout | -altp | – |
Alt Markdown BG Color | -altmd | – |
Alt Output BG Color | -altout | – |
Style Vim NBExt | -vim | – |
Toolbar Visible | -T | – |
Name & Logo Visible | -N | – |
Reset Default Theme | -r | – |
Force Default Fonts | -dfonts | – |
1、 执行命令: jt -f inconsolata -t grade3
2、 执行命令:jt -t oceans16 -f inconsolata