Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate pager by default in the iPython console (because it's perceived as a freeze) #1420

Closed
spyder-bot opened this issue Feb 17, 2015 · 9 comments

Comments

@spyder-bot
Copy link
Collaborator

From firas.mo...@gmail.com on 2013-06-01T00:16:31Z

Spyder Version: 2.2.0
Python Version: 2.7.3
Qt Version: 4.8.2, PyQt4 (API v2) 4.9.4 on Darwin

What steps will reproduce the problem?

  1. open console
    1. type where??? (or any function that has a long man entry.
    2. console becomes unresponsive, you have to close the console and start over. What is the expected output? What do you see instead? i expect the prompt back.

Please provide any additional information below

.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1420

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-06-07T09:45:23Z

Could you provide an example of a function that it's freezing Spyder?

Labels: OpSys-OSX

@spyder-bot
Copy link
Collaborator Author

From fi...@moosvi.com on 2013-06-08T22:15:43Z

Hi,

Yes as I explained in the steps to reproduce the problem, if you type 'where???' It will exhibit the described behaviour.

@spyder-bot
Copy link
Collaborator Author

From albert.m...@gmail.com on 2013-09-03T12:17:33Z

The regular interactive python interpreter does not have this problem
menu Interpreters > Run a python interpreter will open a console that remains active after typing say "linspace?"

However the interactive python does have this bug
menu Interpreters > Open an Ipython console
This will open a console that becomes inactive after typing "linspace?"

The same is also true if you just type "?" at the console prompt... Help text is displayed .. that is great... but then the console is inactive and you can only use it to read the help text and have to start over with a new console loosing all variables defined etc

Spyder Version: 2.2.0
Python Version: 2.7.3
IPython running Qt as the backend

@spyder-bot
Copy link
Collaborator Author

From gilboal...@gmail.com on 2013-11-16T05:24:09Z

This happens in Windows as well (32-bit WinXP, WinPython 3.3.2.3):

Spyder Version: 2.3.0 dev6
Python Version: 3.3.2
Qt Version: 4.8.4, PyQt4 (API v2) 4.9.4 on Windows

@spyder-bot
Copy link
Collaborator Author

From vp2...@gmail.com on 2014-04-30T14:50:02Z

This seems to me like a critical error, since it you have to kill the console just because you ran help on an object. I can verify I have the same issue in Windows 8 64-bit, Spyder 2.2.5, Python 2.7.6. Thanks!

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-05-01T15:57:41Z

I'm unable to reproduce this behavior but if you say it's so bad then I'm going to disable it.

After all, you can use "Ctrl+I" to access docs in the Object Inspector and now that's quite clear from its "Usage" message (in 2.3).

Labels: -OpSys-OSX Cat-IPythonConsole MS-v2.3

@spyder-bot
Copy link
Collaborator Author

From vp2...@gmail.com on 2014-05-01T17:31:49Z

Carlos, for me, I get the freeze for both "where?" and "where??". The issue seems to be how long the docstring is and whether it prints past the bottom of the ipython as currently sized. For example, if I do "pandas.series.max?" with my ipython console pulled out of spyder into it's own independent window and then maximize it on my 1080x1920 screen, I do not get a freeze. But if I run the same command with the ipython console in the default bottom right quadrant of spyder, then I do get the freeze.

Attachment: 1.PNG 2.PNG

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-05-01T18:04:09Z

Thanks for insisting with this one Viraj, I finally got what this problem is about! This is not a freeze, but I can understand your confusion.

When a docstring is too long, the console uses an special widget (called "pager") to show it, instead of flooding it with too much text. You can get out of it by pressing the "q" key.

You can also deactivate this behavior by going to

Tools > Preferences > IPython Console

and un-checking the option called

Use a pager to display additional text inside the console

Linux people is accustomed to it (from the more and less pagers) but I guess people from other OSes find it as a freeze. So I'm gonna deactivate it by default in 2.3 (but the option will be left there for people that understand how to use it).

Summary: Deactivate pager by default in the iPython console (because it's perceived as a freeze) (was: iPython console becomes unresponsive when you use built-in help ("e.g., where???"))
Status: Accepted

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-05-01T18:48:26Z

This issue was updated by revision 9f6abf049dd4 .

  • People not accostumed to pagers think the console has frozen because there is
    no clear indication on how to get out of it.

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant