Skip to content

Commit 600c36a

Browse files
takluyverwesm
authored andcommitted
Catch and silence errors in installing IPython completers.
Avoid problems with older versions of IPython (pre 0.11) Closes gh-230
1 parent 9fe43b7 commit 600c36a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3316,7 +3316,10 @@ def complete_dataframe(obj, prev_completions):
33163316
# Importing IPython brings in about 200 modules, so we want to avoid it unless
33173317
# we're in IPython (when those modules are loaded anyway).
33183318
if "IPython" in sys.modules:
3319-
install_ipython_completers()
3319+
try:
3320+
install_ipython_completers()
3321+
except Exception:
3322+
pass
33203323

33213324

33223325
if __name__ == '__main__':

0 commit comments

Comments
 (0)