问题描述
当我从笔记本中调用并加载主题时,工具栏和笔记本的名称不显示.
The toolbar and notebook name does not show when I call and load the themes from the notebook.
我可以使用代码从笔记本加载主题,但是我不确定如何使用-T
和-N
之类的开关来调用工具栏和笔记本名称.
I can load the themes from notebook using a code but I am not sure how to use the switches like -T
and -N
for call to toolbar and notebook name.
我在代码单元格中使用了以下内容:
I have used the following in a code cell:
from jupyterthemes import get_themes
import jupyterthemes as jt
from jupyterthemes.stylefx import set_nb_theme
set_nb_theme('solarizedd')
主题更改,但工具栏和笔记本名称未出现.即使从菜单栏中的视图中使用切换标题和切换名称"也无效.
The theme changes but the toolbar and notebook name does not appear. Even using the Toggle Header and Toggle Name from view in menu bar has no effect.
推荐答案
我刚刚安装了jupyter主题,并遇到了同样的问题.我的常规和nbextension工具栏消失了,除非我恢复为默认的!jt -r
,否则无法使其恢复.
I just installed the jupyter themes and went thru the same issue. My regular and nbextension toolbar disappeared and could not make it come back unless I reverted to default !jt -r
.
经过一番研究,我把它排除在了....所以你的细胞应该写
after some research i fugure it out....so your cell should write
from jupyterthemes import get_themesimport jupyterthemes as jtfrom jupyterthemes.stylefx import set_nb_themeset_nb_theme('solarizedd', -T, -N,-kl)
from jupyterthemes import get_themesimport jupyterthemes as jtfrom jupyterthemes.stylefx import set_nb_themeset_nb_theme('solarizedd', -T, -N,-kl)
- 可见的工具栏-T
- 名称和可见徽标-N
- 可见内核徽标-kl
- 它们的默认设置为无
- Toolbar Visible -T
- Name & Logo Visible -N
- Kernel Logo Visible -kl
- their defaults are set to none
请参阅文档 jupyter主题文档
或者更永久的代码行,使用命令!"在实际的单元格中
or something more permanent and fewer lines of code, using the command "!" in the actual cell
!jt -t solarizedd -T -N -kl
这篇关于设置Jupyter Notebook主题后工具栏不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!