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?.