Skip to content

Commit

Permalink
Catch and silence errors in installing IPython completers.
Browse files Browse the repository at this point in the history
Avoid problems with older versions of IPython (pre 0.11)

Closes gh-230
  • Loading branch information
takluyver authored and wesm committed Oct 14, 2011
1 parent 9fe43b7 commit 600c36a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3316,7 +3316,10 @@ def complete_dataframe(obj, prev_completions):
# Importing IPython brings in about 200 modules, so we want to avoid it unless
# we're in IPython (when those modules are loaded anyway).
if "IPython" in sys.modules:
install_ipython_completers()
try:
install_ipython_completers()
except Exception:
pass


if __name__ == '__main__':
Expand Down

0 comments on commit 600c36a

Please sign in to comment.