更改主题后缺少代码单元格编号

问题描述

在jupyter笔记本see here中更改主题之后,我不再具有In[]out[]号,该如何解决

我用了这个:



!pip install jupyterthemes
!jt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T -N -kl

现在我的jupyter是这样的:

no number for In[]

enter image description here

解决方法

我似乎有问题,但是我解决了:

from IPython.core.display import display,HTML
display(HTML("<style>.prompt_container { width:100px !important; }</style>"))

等待一个真实的答案