[IPython-dev] [ANN] IPython 3.0.0rc1
bussonniermatthias at gmail.com
Thu Feb 19 14:38:45 EST 2015
Le 19 févr. 2015 à 09:54, Thomas Kluyver <takowl at gmail.com> a écrit :
> 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.
Indeed,and having a space after the comma, or not was returning different results.
> 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.
You can also select and shift-tab, it should give info only on selection.
> 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.
It was not technically "smart", and we don't use the new message spec at all,
so I doubt this will be a simple "fix".
> IPython-dev mailing list
> IPython-dev at scipy.org
More information about the IPython-dev