简体   繁体   中英

pydev Ipython console freezing when paging

If in the pydev 2.5 with Ipython console 0.11 I write:

import numpy

numpy?

I get the documentation for numpy and as it's longer than the screen it gets paged showing the message:

---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. Add the following code to the 'Initial interpreter commands' (PyDev -> Interactive Console)

from IPython.core import page
def nopage(strng, start=0, screen_lines=0, pager_cmd=None):
    print(strng)
page.page = nopage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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