[IPython-dev] [ANN] IPython 3.0.0rc1
Matthias Bussonnier
bussonniermatthias at gmail.com
Sat Feb 21 14:04:15 EST 2015
Le 21 févr. 2015 à 02:09, Max Linke <max_linke at gmx.de> a écrit :
> I actually have a problem seeing the docstring and definition right now. By default S-Tab only shows the type, string, and file information. (see attached screenshots)
> To get to the for me useful key "definition" I have to press the small plus key. This is really annoying for me because I used S-Tab before to look up the arguments needed for a function.
>
> Is there a way to define which keywords are shown when I press S-TAB?
Shift-Tab -> Show tooltip
Shift-Tab x2 -> expand tooltip
Shift-Tab x3 -> make tooltip sticky for 10s, you can type, and it won't disappear.
Shift-Tab x4 -> send tooltip to pager.
Hope that will help.
--
M
>
> best Max
>
> On 02/19/2015 05:35 PM, Michael Waskom wrote:
>> Hi, sorry to be a nuisance, but I'm worried this part of my second email
>> may have been overlooked, and it's been bugging me a lot as I've been
>> working with the release candidate:
>>
>> One other thing I have noticed is that, when shift-TABing to get the
>> function docstring popover in the notebook, the help seems often bound to
>> objects that have been added as arguments, and not to the function
>> itself., i.e.
>>
>> func(a, b, [shift-TAB]
>>
>> will show me the docstring for the object that `b` points at, although this
>> seems to only happen when an variable is being used. In other words,
>>
>> func(a, "b", [shift-TAB]
>>
>> will show me the docstring for `a`.
>>
>> Previously this would happen when using a function within the call, ie.e.
>>
>> func1(a, func2(b), [shift=TAB]
>>
>> would should me the docs for `func2` (even if I had closed parens on it).
>> But the behavior has changed somewhat.
>>
>> On Tue, Feb 17, 2015 at 2:56 PM, Matthias Bussonnier <
>> bussonniermatthias at gmail.com> wrote:
>>
>>>
>>> Le 17 févr. 2015 à 14:45, Michael Waskom <mwaskom at stanford.edu> a écrit :
>>>
>>> Ooop one more thing I've noticed. ctrl-j/k no longer appears to move
>>> cells, although that shortcut is still referenced here:
>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Notebook/Notebook%20Basics.ipynb
>>> (not in the help popup though, so maybe those have been removed, which
>>> would make me sad).
>>>
>>>
>>> Yes you are right. The shortcut are conflicting with FF windows, so we
>>> removed them.
>>> You can add them back in your custom.js though.
>>> --
>>> M
>>>
>>>
>>> On Tue, Feb 17, 2015 at 1:53 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>>>
>>>> On 17 February 2015 at 13:43, Max Linke <max_linke at gmx.de> wrote:
>>>>
>>>>> Isn't there a guarantee about which functions are available when
>>>>> custom.js is loaded?
>>>>>
>>>>
>>>> Currently, as far as I'm aware, no, there isn't. Possibly we should give
>>>> one, though I think that's too late for 3.0 now.
>>>>
>>>>
>>>>> I tried to read the old behavior of 'ctrl-j' and 'ctrl-k' with:
>>>>>
>>>>> IPython.Cell.options_default.cm_config.extraKeys['ctrl-j']
>>>>>
>>>>
>>>> There's a code snippet to restore Ctrl-J/Ctrl-K here:
>>>> https://github.com/ipython/ipython/pull/7732#issuecomment-74519970
>>>>
>>>> The shortcuts set in cm_config are only for Codemirror, i.e. they act
>>>> within a single cell. Notebook shortcuts, e.g. for moving cells around, are
>>>> defined elsewhere.
>>>>
>>>>> Is it documented somewhere what the recommended way is of enabling
>>>>> extensions in the notebook? I can't find anything in the online docs and
>>>>> most extensions I find seem to use another way to load it.
>>>>
>>>> Basically nothing about the JS API is documented yet, and this is kind of
>>>> deliberate - most of it is still changing pretty fast, and we don't want to
>>>> give a false impression of stability.
>>>>
>>>> In IPython 3, there is a way of storing declarative frontend config,
>>>> including a set of extensions to load, so you don't have to manually edit
>>>> custom.js to enable them. There is an extension built on top of this to
>>>> provide a GUI for enabling and disabling extensions:
>>>>
>>>>
>>>> https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/config-extension
>>>>
>>>> Thomas
>>>>
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev at scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>
>>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
> <Screenshot from 2015-02-21 11:02:24.png><Screenshot from 2015-02-21 11:01:41.png>_______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list