首页 文章

jupyter主题 - 默认主题但宽度100%

提问于
浏览
0

我开始使用jupyter主题:

https://github.com/dunovank/jupyter-themes

为了设置主题,我设置主题,然后启动jupyter笔记本:

jt -t solarizedl -cellw 100%
jupyter notebook

但是,我想保留jupyter笔记本的默认设置,并且只将单元格加宽到100% . 因此,我运行以下命令来恢复默认,设置主题,然后启动 .

jt -r
jt -cellw 100%
jupyter notebook

但是,这没有做任何事情;我的笔记本仍然是默认宽度,而不是我屏幕宽度的100% .

有关如何通过jupyter主题使用cmd提示仅实现100%单元格宽度的任何想法?

1 回答

  • 0

    你有很多选择:

    • 从笔记本改变

    来自IPython.core.display导入显示,HTML
    display(HTML('<style> .container {width:100%!important;} </ style>'))

    • ~/.jupyter/custom/custom.css (Jupyter) ~/.ipython/profile_default/static/custom/custom.css (iPython)下创建自定义css文件,内容为:

    .container {width:100%!important;}

相关问题