New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix weird magic completion in notebook #1347
Conversation
should fix ipython#1243 handle magic as a special case, but the completer should be moved in it's own clase for 0.13
I have tested this and it seems to have fixed the issue. @Carreau do you think you will be able to refactor the completion/tooltip code into its own class anytime soon? |
Fix weird magic completion in notebook. Closes #1243.
Any time soon is really compromise. It's still on my to-do list of things I would like to improve. |
Many thanks for merging the fix! |
For the record: the existing tab completion was copied over directly On Tue, Jan 31, 2012 at 2:35 AM, v923z
Brian E. Granger |
@ellisonbg, I Really needed a completion based on the current text cell instead of kernel introspection, so I quickly did this |
I am not quite clear on what usage case this addresses, can you say a bit more? On Wed, Feb 1, 2012 at 7:11 AM, Bussonnier Matthias
Brian E. Granger |
like, when writing a class in the notebook, or in a for loop, class Dummy(object):
def __init__(self):
self.myartrr1= 1
self.myatrr2= 2
self.myartrr3= 3
(at)property #no at or github want to ping property...
def myProperty(self):
return null
def myfunc(self)
return self.my<ctrl-space> # <-- there I ask for `text-based` completion it pops
But it should be easier to cache the introspection of the kernel and "merge" the result with this list of completion and have a mixed completer that get completion both from kernel and also from current code cell |
On Wed, Feb 1, 2012 at 10:50 AM, Bussonnier Matthias
OK I think this functionality would be useful.
But I do think we should clean up the tab completion/tooltip code
I agree this would be nice, but if we want to go this way, then it is
Brian E. Granger |
Agreed, this was just a quick need so I've done it on the fly, nothing serious. |
Fix weird magic completion in notebook. Closes ipython#1243.
should fix #1243
handle magic as a special case, but the completer should be moved in it's
own clase for 0.13
Didn't open a PR first in case it would have introduce other bugs, but Zoltán seem to have test it long enough and didn't had problem (see #1234).