Jupyter Notebook:在代码块中启用垂直滚动 [英] Jupyter Notebook: enable vertical scrolling in code block

查看:505
本文介绍了Jupyter Notebook:在代码块中启用垂直滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在jupyter笔记本的代码块中启用垂直滚动?

How do I enable vertical scrolling in a code block in a jupyter notebook?

我以前是不小心做的,但是现在我无法重现它.我发现使用文本编辑器在文件本身中设置了autoscroll = true ...

I've done it accidentally before, but now I can't reproduce it. What I found was set autoscroll = true in the file itself using a text editor...

但是,我这样做了……它已经有了一个设置,"scrolled": true.在笔记本中,它只有水平滚动,所以我想这就是滚动"设置的修改.

However, I did that... and it already has a setting, "scrolled": true. In the notebook, it has only horizontal scrolling, so I guess that is what the "scrolled" setting modified.

推荐答案

要在笔记本的输出单元格中启用垂直滚动,您只需单击单元格内容左侧(在空白处,您将看到该区域时,该区域会变成淡淡的阴影).

In order to enable vertical scrolling in an output cell of the notebook, you just need to click to the left of the cell content (in the margin, you will see the area becomes slighty shaded when you are over it).

如果双击,则输出单元格的内容将被隐藏.

If you double click, the content of output cell will be hidden.

如果您想隐藏输入单元格的内容,另请参见

If you would like to hide the content of an input cell, see also Scroll windows for code in iPython (Jupyter) Notebooks?.

这篇关于Jupyter Notebook:在代码块中启用垂直滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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