jupyter notebook page width and theme color change and auto-completion of code

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 -cellwis to adjust the width of the cell, followed by the width parameter to
select topics are
onedork | 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 Nbextensionstab, in this page, check Hinterlandthat is enabled for automatic code completion, as shown:

1650654-404620eae2a9a6b8.png
Hinterland

Attach the final result

1650654-8beb912e2db8f85e.png
jupyter final results

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

Guess you like

Origin blog.csdn.net/weixin_34414196/article/details/91300616