防止在单元格评估后Jupyter屏幕跳下 [英] Prevent Jupyter screen from jumps down after cell evaluation

查看:122
本文介绍了防止在单元格评估后Jupyter屏幕跳下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我评估一个单元格(Shift + Enter)时,jupyter就会向下移动屏幕,以便显示输出,假定该单元格要大到可以完全容纳在屏幕上. 我发现此功能相当烦人,因为它跳得太快,以至于我有时在调试时会迷失原来的位置.

Whenever i evaluate a cell (Shift+Enter) jupyter moves the screen down so that the output is shown, assuming the cell is to big to fit on the screen entirely. I find this feature rather annoying as it jumps so fast that i sometimes lose track where i just was when debugging.

是否可以修改此行为或完全禁用自动屏幕调整?

Is there a way to modify this behavior or to disable automated screen adjustments entirely?

我使用未经任何修改的标准jupyter安装.

I use a standard jupyter installation without any modifications.

笔记本服务器的版本为:5.2.0 服务器正在此版本的Python上运行: Python 3.5.4rc1(默认,2017年7月25日,08:53:34) [GCC 6.4.0 20170704]

The version of the notebook server is: 5.2.0 The server is running on this version of Python: Python 3.5.4rc1 (default, Jul 25 2017, 08:53:34) [GCC 6.4.0 20170704]

当前内核信息:
Python 3.5.4rc1(默认,2017年7月25日,08:53:34)

Current Kernel Information:
Python 3.5.4rc1 (default, Jul 25 2017, 08:53:34)

推荐答案

Shift+Enter命令为run cell, select cell below,因此,如果要调试单元,则可能不是您想要的.如果您使用Ctrl + Enter,则只能使用run cell,并且不应移动单元格光标.

The Shift+Enter command is run cell, select cell below, so if you are debugging a cell this is probably not what you want. If you use Ctrl + Enter, that is just run cell and should not move your cell cursor.

这可能是导致问题的原因,因为跳到下一个单元格还会显示您的输出,从而误导您导致问题的原因.在我的5.2笔记本中使用Ctrl + Enter根本不会移动屏幕位置.

This may be what is causing your issue, as jumping to the next cell would also show you your output, misleading you on the cause of your issue. Using Ctrl + Enter in my 5.2 notebook does not move my screen position at all.

这篇关于防止在单元格评估后Jupyter屏幕跳下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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