Win下更改jupyter主题
本人环境 Win+Conda
开始使用pip 安装,发现无法使用pip,修改环境变量,将D:\Program Files\Conda\Scripts加入Path中
再次使用pip,报错无SSL,网上查找发现需将D:\Program Files\Conda\pkgs\openssl-1.1.1b-he774522_1\Library\bin加入路径中,
最后使用pip install --upgrade jupyterthemes,安装themes成功
此时可以在cmd里面调用已经安装好的themes啦~
jt -l
就会返回所有你安装好的主题的名词列表,这样你就知道了你安装了哪些主题。
jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
[-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-dfs DFFONTSIZE]
[-m MARGINS] [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-vim]
[-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp] [-altmd] [-altout]
[-P] [-T] [-N] [-r] [-dfonts]
cl optionsargdefault
Usage help
-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
--
Kernel Logo Visible
-kl
--
Reset Default Theme
-r
--
Force Default Fonts
-dfonts
--
Jupyter notebook 实现自动代码补全
首先安装 nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
然后安装 nbextensions_configurator
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
如果提示缺少依赖,就使用pip安装对应依赖即可。
最后重启jupyter,在弹出的主页面里,能看到增加了一个Nbextensions标签页,在这个页面里,勾选Hinterland即启用了代码自动补全,如图所示: