[IPython-User] iPython QTConsole - Force yellow quickref guide to appear again?

Matthias BUSSONNIER bussonniermatthias@gmail....
Thu Sep 6 08:33:06 CDT 2012


Le 6 sept. 2012 à 15:17, Francesco Montesano a écrit :

> 2012/9/6 Matthias BUSSONNIER <bussonniermatthias@gmail.com>:
>> 
>> Le 6 sept. 2012 à 12:09, Francesco Montesano a écrit :
>> 
>>> Hi,
>>> I have a question (loosely) related with the yellow box and help on functions:
>>> The box is great to have the list of arguments, but it does not show
>>> the whole docstring if it is long, so sometimes the help( function )
>>> is needed.
>>> In python and ipython console the help is shown with something that is
>>> like 'less' so that one can search, move around easily. And exiting
>>> from the help one returns to the console as was left and I can can see
>>> all the last commands typed. On qtconsole the help is printed on the
>>> screen, which makes more complicated to roam in the console.
>>> Would be possible to change it so that is consistent with the standard
>>> python and ipython help behavior?
>> 
>> For me the behavior is the same in both the qtconsole and the console.
>> 
>> Printed normally if the help is short.
>> Piped through a pager like less if it's longer than the size of the screen.
>> 
>> Doesn't it do like that for you ?
> nope! The help is always piped to pager in python and ipython and
> always printed on screen on the qtconsole

Which version are you using ?
I can't test 0.12, 0.12.1 but on 0.13+ it should open a pager for docstring longer than the 
qtconsole height

-- 
Matthias


> 
> Francesco
> 
>> --
>> Matthias
>> 
>> 
>> 
>>> 
>>> Cheers,
>>> Fra
>>> 
>>> 
>>> 2012/9/6 Victor Hooi <victorhooi@yahoo.com>:
>>>> Hi,
>>>> 
>>>> Sorry for replying to my original message - I turned off mail delivery,
>>>> hence I didn't get those messages in my mailbox, I saw them on the list.
>>>> 
>>>> In reply to Aaron, no, I don't think always showing the yellow box is too
>>>> intrusive - it's just a question of placement (as in, whether it overlaps
>>>> your code) - and I think iPython is fairly good about that.
>>>> 
>>>> For me at least, the utility of the yellow quick-reference box is greater
>>>> than any loss of screen estate.
>>>> 
>>>> Cheers,
>>>> Victor
>>>> 
>>>> On Wed, Sep 5, 2012 at 12:35 PM, Victor Hooi <victorhooi@yahoo.com> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I've just recently started using iPython, and I have to say it's awesome!
>>>>> 
>>>>> The qtconsole mode has probably just become my default Python shell now
>>>>> =).
>>>>> 
>>>>> The inline documentation in particular is awesome - if you type in a
>>>>> function, then hit the "(" (left bracket), it pops up a nice yellow box
>>>>> showing you the function prototype and help. E.g.:
>>>>>> 
>>>>>> foo = max(
>>>>> 
>>>>> My question is - is there a way to force this help box to reappear again?
>>>>> 
>>>>> For example, you press the up key to edit history, and you're editing your
>>>>> function arguments again - is there a key combination you can press to get
>>>>> the yellow box to appear again?
>>>>> 
>>>>> I know you could delete all the arguments and add a ? to bring up a
>>>>> different form of help
>>>>>> 
>>>>>> foo = max?
>>>>> 
>>>>> However, this doesn't really help if you've already entered in a whole
>>>>> bunch of arguments:
>>>>>> 
>>>>>> foo = max(cat=1, dog=2)
>>>>> 
>>>>> Sometimes you just want the argument list to pop up again quickly, without
>>>>> going into full help.
>>>>> 
>>>>> Is there a way?
>>>>> 
>>>>> Cheers,
>>>>> 
>>>>> Victor
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> IPython-User mailing list
>>>> IPython-User@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>>> 
>>> _______________________________________________
>>> IPython-User mailing list
>>> IPython-User@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>> 
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-User mailing list