The first is to download the theme, the command line is as follows:
pip install --no-dependencies jupyterthemes==0.18.2
Installed, the computer may prompt some lack lesscpy, continue the installation pip
pip install lesscpy
Then choose the subject, set the font size, I summed up one of my favorite
jt --lineh 140 -f consolamono -tf ptmono -t onedork -ofs 14 -nfs 14 -tfs 14 -fs 14 -T -N -cellw 1500
The above -cellw
is to adjust the width of the cell, followed by the width parameter to
select topics areonedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
Command line usage
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]
Description Command line options
cl Options | ARG | default |
---|---|---|
Usage Help | -H | - |
List Topics | -l | - |
To install the theme name | -t | - |
Code font | -F | - |
Code font size | -fs | 11 |
Notebook fonts | -nf | - |
Notebook font size | -nfs | 13 |
Text / MD unit fonts | -tf | - |
Text / MD Cell Fontsize | -tfs | 13 |
Pandas DF Fontsize | -dfs | 9 |
Output area font size | -ofs | 8.5 |
Mathjax font size (%) | -mathfs | 100 |
Introduction Margins | -m | auto |
Cell Width | -cellw | 980 |
High Line | -lineh | 170 |
Cursor width | -cursw | 2 |
The cursor color | -cursc | - |
Alt layout tips | -altp | - |
Alt Markdown BG color | -altmd | - |
Alt BG color output | -altout | - |
Style Vim NBExt * | -vim | - |
Toolbar visible | -T | - |
Name and logo visible | -N | - |
Core Logo Visible | -kl | - |
Reset default theme | -r | - |
Forced default font | -dfonts | - |
Then let jupyter notebook automatic code completion, first install nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
Then installnbextensions_configurator
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
If the missing dependency prompted, dependent on the use of the corresponding installation can pip.
Finally restart jupyter, pop-up in the main page, you can see the addition of a Nbextensions
tab, in this page, check Hinterland
that is enabled for automatic code completion, as shown:
Attach the final result
More usage please visit the official website: jupyter-Themes
Reference herein marsh wind Come article summary, thanks! (• ω •) ✧
Reproduced in: https: //www.jianshu.com/p/4b213894289b