Skip to content
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

remove deprecated package warnings in IPython 4 #12

Merged

Conversation

kristianperkins
Copy link
Collaborator

Running ipydb in IPython 4 you get warnings like when loading ipydb:

/.../IPython/config.py:13: ShimWarning: The `IPython.config` package has been deprecated. You should import from traitlets.config instead.
  "You should import from traitlets.config instead.", ShimWarning)

this when running ipdb queries:

/.../IPython/utils/path.py:282: UserWarning: locate_profile has moved to the IPython.paths module
  warn("locate_profile has moved to the IPython.paths module")

This pull request (try/except import hax :/) removes those warnings in IPython 4 due to deprecated packages whilst falling back to the IPython 3 imports. If you want to support IPython 4 as the minumum, you can just use the new imports (and forget the except imports). If the warning messages don't bother you, ignore this pull request :).

@kristianperkins kristianperkins changed the title try to import IPython 4 packages first remove deprecated package warnings in IPython 4 Oct 17, 2015
@jaysw
Copy link
Owner

jaysw commented Oct 18, 2015

Thanks KP!

jaysw added a commit that referenced this pull request Oct 18, 2015
remove deprecated package warnings in IPython 4
@jaysw jaysw merged commit 3644c0f into jaysw:master Oct 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants