-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Add columns to IPython tab completions of DataFrame attributes #233
Conversation
Avoid problems with older versions of IPython (pre 0.11) Closes pandas-devgh-230
This is very cool-- I like it. Merged into master. I don't have a strong feeling about prefacing commits with ENH/BUG/DOC/RLS, etc. But if you feel so inclined feel free to do so |
I tend not to use the abbreviations, but I've seen that you do - I'm happy to conform if you'd like to keep the format consistent for the project. |
Eh, I've been doing it for a few months and I'm kind of "meh" on it, so carry on =) |
have you noticed any problems with this? I was getting some cases where it caused IPython to blow up "Sorry IPython has crashed..." but I was under too much time pressure with what I was doing to write down how to reproduce it. And now I can't-- ha. Well I don't think I'll let it hold up the release, can always tweak it in a bugfix release |
I haven't, but I admit I haven't done extensive testing. Did you grab the |
I updated to ipython git master yesterday and haven't had any issues since so it could have been something transient. 0.11 seems to also be OK, but will wait for users to report I suppose. It is nice to have |
boom:
|
Hmmm, that's two bugs in one go, because IPython shouldn't be susceptible to errors in custom completer functions. That will need hardening. I haven't seen the 'buffer size mismatch' error before. I'll look into it. Do you know what the column names were when this happened? |
They were integers. That's almost certainly the problem |
I can get a different TypeError ("expected string or buffer") if the argument to match() isn't a string. I guess we need an |
Also opened an IPython bug here: ipython/ipython#907 |
This addresses #230.
I'm not entirely happy about how we check whether IPython is imported, but it's the best option I could see, and I don't think we should unconditionally import IPython and dependent modules just because it's installed.