【问题标题】:Jupyter Notebook Input Cell Margin Issue using jupyter-themes使用 jupyter-themes 的 Jupyter 笔记本输入单元格边距问题
【发布时间】:2022-11-26 13:18:42
【问题描述】:

我在使用 Jupyter 笔记本的 jupyter-themes 包时遇到了一个一致的问题,其中输入单元格从右边距切掉了几个像素。我曾尝试使用 Page Inspect 操纵单元格宽度 (-cellw) 和单元格的填充/边框无济于事。这是红色框突出显示的问题的屏幕截图:

Jupyter Margin Issue

任何帮助,将不胜感激。谢谢。

【问题讨论】:

    标签: jupyter-notebook themes editor


    【解决方案1】:

    在.jupyter/custom/custom.css 中编辑custom.css 文件帮助了我。

    在div.CodeMirror-lines 中,将padding-left 参数设置为较小的值或零。

    div.CodeMirror-lines {
     padding-bottom: .9em;
     padding-left: 0;
     padding-right: .5em;
     padding-top: .7em;
    }
    

    我找到了这个解决方案here。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-15
      • 1970-01-01
      • 2022-11-16
      • 1970-01-01
      • 2016-01-14
      • 1970-01-01
      • 2020-05-05
      • 1970-01-01
      相关资源
      最近更新 更多