<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Sorry, I did see that part of the message before, but I neglected to respond.<br></div><div class="gmail_quote"><br>On 19 February 2015 at 08:35, Michael Waskom <span dir="ltr"><<a href="mailto:mwaskom@stanford.edu" target="_blank">mwaskom@stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:12.8px">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.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">func(a, b, [shift-TAB]</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">will show me the docstring for the object that `b` points at</div></blockquote></div><br></div><div class="gmail_extra">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.<br><br></div><div class="gmail_extra">The upside of this is that it's possible to do smarter things, like tokenising the code, so in your example:<br><br>> <span class="im">func1(a, func2(b), [shift-TAB]<br><br></span></div><div class="gmail_extra"><span class="im">it would be able to provide information on func1 rather than func2.<br><br>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.<br><br></span></div><div class="gmail_extra"><span class="im">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.<br><br></span></div><div class="gmail_extra"><span class="im">Thomas<br></span></div></div>