Article Directory
1. Modify Jupyter notebook theme
Install themes
pip install --upgrade jupyterthemes
View available themes
jt -l
Configure theme parameters
The main setting parameters are:-t
Set theme -f
Code font -fs
Code font size -cellw
(Focus screen ratio or width) -ofs
(Font size of output section) -T
==(Display Toolbar)== and so on.
My settings are:
C:\Users\35192>jt -t oceans16 -f consolamono -fs 11 -cellw 90% -ofs 10 -dfs 11 -T
Show results
More instructions
cl options | arg | default |
---|---|---|
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 | – |
Reset Default Theme | -r | – |
Force Default Fonts | -dfonts | – |
Two, modify the working path
The open path in the default configuration is among the users of C drive. In order to reduce the storage consumption of C drive, open the file and modify the storage path. As shown in the figure below, it is a schematic diagram after opening it according to the default path: The
modification method has been found on the Internet to introduce several kinds of modification configuration files, but I have tried many times to no avail. Just found a simple one: right-click the jupyter notebook property, add your appropriate path in the starting position:, G:\Projects\Jupyter notebook
and %USERPROFILE%/
delete the " " in the target . If you don't delete it, it will be the default path at startup.