修改jupyter样式,使用样式缺失导航栏,及关于Jupyter Notebook 写的时候会覆盖问题

只要按一下键盘上的 insert 键就可以切换成继续书写而不是覆盖

Jupyter Notebook更换主题

每次我们打开jupyter的时候都是一样的主题,一样的界面,不免有些单调,所以本文主要帮助大家修改jupyter的主题。

安装

首先,我们需要安装一个工具包

pip install jupyterthemes
  • 1

安装完之后我们就可以尝试这修改主题了

切换主题

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
Kernel Logo Visible -kl
Reset Default Theme -r
Force Default Fonts -dfonts

打开命令行工具

> jt -l  # 列出可用的主题名称

"""
Available Themes:
   chesterish
   grade3
   gruvboxd
   gruvboxl
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl
"""
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

切换主题(之前的问题主要是没有加入-T ,导致添加样式后,导航栏消失,网上的博客很多也没有这个-T)

jt -t 主题名 -T

恢复默认

Jt -r

各主题样式

Oceans16
在这里插入图片描述

One dork

在这里插入图片描述

Chesterish

在这里插入图片描述

Grade3

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39091546/article/details/112888667
今日推荐