mar*_*ite 13 python python-3.x jupyter jupyter-notebook
我正在使用安装了Anaconda的jupyter笔记本(我在Mac上).几天前,我想把主题更改为深色背景,我按照这里的说明进行操作.也就是说,我已下载主题custom.css
并将其放入~/.jupyter/custom/
.它工作得很好.
我喜欢这个主题,但我想回到默认主题(这个没有显示主工具栏等).我试图custom.css
从其文件夹中删除,我重置了我的终端,但没有任何改变!我猜jupyter会保留一些我应该删除的主题副本,但我找不到它.
我还尝试按照以下命令卸载jupyter并重新安装:
conda update conda
conda uninstall ipython
conda install jupyter
Run Code Online (Sandbox Code Playgroud)
再一次,没有变化.我坚持我的黑色背景主题,没有工具栏.
小智 17
一个更简单的方法可能是:
pip install jupyterthemes
Run Code Online (Sandbox Code Playgroud)
现在,您可以从以下给定的主题中进行选择,并像这样激活它
# list available themes
# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
jt -t <THEME_NAME>
Run Code Online (Sandbox Code Playgroud)
为了将您的主题重置为默认主题,只需使用
jt -r
Run Code Online (Sandbox Code Playgroud)
有关所有信息和更多信息,请访问github.com/dunovank/jupyter-themes
希望这可以帮助!
Jim*_*ard 13
我之前删除custom/
目录的建议不起作用.jupyter
将custom.css
文件缓存在其他目录中,这些目录很难一起清除.如果它找不到包含文件custom
的.css
文件夹,则会在其他位置查找.css
文件.此外,我不确定卸载时是否实际删除了每个位置jupyter
.
最简单的解决方案是删除旧的custom.css
并用新的空custom.css
文件替换它.jupyter
挑选它并恢复其默认外观.
Pra*_*Das 11
我希望你曾经pip install jupyterthemes
获得自定义主题。
以下是引导您从安装新主题到将其重置为默认值的步骤。
pip install jupyterthemes
jt -l (List of all themes)
jt -t <THEME NAME> (to implement a theme)
jt -r (to reset the notebook to default)
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助。
小智 7
关闭 jupyter notebook 的所有实例。打开 Anaconda 提示符。运行“pip install jupyterthemes”这应该会显示由 jupyter notebook 安装/缓存的主题。
现在运行“jt -r”将主题重置为默认值,如下所示。
打开并测试 jupyter notebook。主题现在应该消失了。干杯!!!
在从笔记本运行 jt 的 Windows 上,必须在 jt 命令前面加上 !。
!jt -t oceans16 (my choice)
!jt -r
Run Code Online (Sandbox Code Playgroud)