[英]pydev Ipython console freezing when paging
If in the pydev 2.5 with Ipython console 0.11 I write: 如果在带有Ipython控制台0.11的pydev 2.5中我写道:
import numpy
numpy?
I get the documentation for numpy and as it's longer than the screen it gets paged showing the message: 我得到numpy的文档,因为它比屏幕更长,它被分页显示消息:
---Return to continue, q to quit---
However no matter what keys I press it'll stay there. 然而,不管我按什么键,它都会留在那里。 typically I'll have to restart the console to continue. 通常我必须重新启动控制台才能继续。
Is this a bug? 这是一个错误吗?
It seems that the console is not sending the key press to actually perform the paging. 似乎控制台没有发送按键来实际执行分页。
A workaround is to redefine the ipython paging function to never actually page. 解决方法是将ipython分页功能重新定义为永远不会实际分页。 Add the following code to the 'Initial interpreter commands' (PyDev -> Interactive Console) 将以下代码添加到'初始解释器命令'(PyDev - >交互式控制台)
from IPython.core import page
def nopage(strng, start=0, screen_lines=0, pager_cmd=None):
print(strng)
page.page = nopage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.