简体   繁体   English

IPython自动滚动?

[英]IPython Auto Scroll?

In IPython, if I run a cell, the browser scrolls to put the cell near the bottom of the page. 在IPython中,如果我运行一个单元格,则浏览器会滚动以将该单元格放在页面底部附近。 If this happens when I plot a chart, then I can't see the chart and have to scroll down manually. 如果在绘制图表时发生这种情况,则看不到图表,必须手动向下滚动。 How can I stop this happening? 我该如何阻止这种情况发生?

I feel your frustration! 我感到您的无奈!

This will probably depend on where you plotter functionality is within your ipython notebook, but one solution (especially if it is in the last cell) is to create many blank cells below your plotter cell (say 10 to 20) then use Ctrl + Enter to run the plotter cell. 这可能取决于您的绘图仪功能在ipython笔记本中的位置,但是一种解决方案(特别是如果它位于最后一个单元格中)是在绘图仪单元格下方创建许多空白单元格(例如10至20),然后使用Ctrl + Enter键运行绘图仪单元。 This may need some playing around with but I have gotten this to work for me! 这可能需要一些操作,但是我已经为我工作了!

(I think the idea of Ctrl + Enter is to keep the cell where it is) (我认为Ctrl + Enter的目的是将单元格保持在原处)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM