-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
COMPAT: Catch warnings on tab-complete in IPy 6 #16414
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
COMPAT: Catch warnings on tab-complete in IPy 6 #16414
Conversation
I think it was on Resampler. I'll just push additional fixes here. |
Codecov Report
@@ Coverage Diff @@
## master #16414 +/- ##
==========================================
+ Coverage 90.42% 90.42% +<.01%
==========================================
Files 161 161
Lines 51023 51025 +2
==========================================
+ Hits 46137 46139 +2
Misses 4886 4886
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16414 +/- ##
==========================================
- Coverage 90.43% 90.42% -0.01%
==========================================
Files 161 161
Lines 51045 51055 +10
==========================================
+ Hits 46161 46168 +7
- Misses 4884 4887 +3
Continue to review full report at Codecov.
|
da2d290
to
8d9689f
Compare
Catching all of the warnings from And I don't think there's any way to catch the warnings from |
Properties may run code with Jedi completion in IPython 6 Closes pandas-dev#16409
8d9689f
to
adf9343
Compare
Latest commit fixes this for Categorical and Resampler. @jreback do the changes to My change could be incorrect if |
def test_tab_complete_ipython6_warning(self, ip): | ||
from IPython.core.completer import provisionalcompleter | ||
code = dedent("""\ | ||
import pandas.util.testing as tm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah didn't know you could do this. pretty cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
FYI, I think for 0.21.0 going to remove the back-compat for .resample anyhow (IOW, all of that hacking to make it look like the previous API), but this is good. |
I didn't appreciate how awesome of a hack it was until now :) |
Properties may run code with Jedi completion in IPython 6 Closes pandas-dev#16409 (cherry picked from commit 3c9a74b)
Properties may run code with Jedi completion in IPython 6 Closes pandas-dev#16409
Properties may run code with Jedi completion in IPython 6
Closes #16409
I want to leave this open for a couple days to see if I can find other places that trigger this warning. I'm pretty sure I've seen other instances, but they may have been from other libraries.