Jupyter笔记本电脑的电池输出因Jupyter主题引起的边距而被截断/截断 [英] Jupyter Notebook cell output cut off/truncated by margin caused by Jupyter Themes

查看:102
本文介绍了Jupyter笔记本电脑的电池输出因Jupyter主题引起的边距而被截断/截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jupyter Notebook中我的单元格输出在左侧被切断,这遮盖了最左侧的输出.供参考(我还不能发布图片):

https://imgur.com/gallery/rg759nN

有什么办法解决这个问题吗?

感谢下面的Rabbit,该问题似乎是由使用Jupyter Themes提供的备用主题引起的.

解决方案

在Jupyter Themes github页面上找到了解决方案:

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

在custom.css文件中,我通过将div.out_prompt_overlay.prompt和div.out_prompt_overlay.prompt都更改了,将其最小宽度和宽度值更改为11.5ex,而不是原始的14.5ex." /p>

或者我添加了填充:

div.output_area { display: -webkit-box; padding: 13px; }

转到chesterish.css文件(这是我正在使用的主题),然后使用jupyter主题重新应用该主题.

My cell output in Jupyter Notebook is cut off on the left hand side which obscures the leftmost output. For reference (I can't post images yet):

https://imgur.com/gallery/rg759nN

Any idea how to fix this?

EDIT: Thanks to rabbit on below, the problem seems to be caused by using the alternate themes provided by Jupyter Themes

解决方案

Found the solution on Jupyter Themes github page:

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

"In the custom.css file, I fixed it by changing both the div.out_prompt_overlay.prompt's and the div.out_prompt_overlay.prompt:hover's min-width and width values to 11.5ex instead of the original 14.5ex."

Alternatively I added the padding:

div.output_area { display: -webkit-box; padding: 13px; }

To the chesterish.css file (which was the theme I was using) and reapplied the theme using jupyter themes.

这篇关于Jupyter笔记本电脑的电池输出因Jupyter主题引起的边距而被截断/截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆