[IPython-dev] [ANN] IPython 3.0.0rc1

Thomas Kluyver takowl at gmail.com
Thu Feb 19 12:54:44 EST 2015


Sorry, I did see that part of the message before, but I neglected to
respond.

On 19 February 2015 at 08:35, Michael Waskom <mwaskom at stanford.edu> wrote:

> 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
>

I think previously there was a regex in the JS that looked backwards for
something like "name(". As part of the work to make the frontend more
language agnostic, this was dropped - it now sends the current cell and the
cursor position to the kernel and expects that to work out what it should
provide information about.

The upside of this is that it's possible to do smarter things, like
tokenising the code, so in your example:

> func1(a, func2(b), [shift-TAB]

it would be able to provide information on func1 rather than func2.

The downside is that we haven't implemented anything smart in the kernel
yet, so it currently just gets the last name before or at the cursor.

We don't want to start messing around with this code for 3.0 now, but for
3.1 we should aim to make it at least as smart as the JS was in IPython
2.x. I'll open an issue for it.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150219/3a7a3764/attachment.html>


More information about the IPython-dev mailing list