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

Get Tracer working after ipapi.get replaced with get_ipython #3511

Merged
merged 1 commit into from Jul 2, 2013
Merged

Get Tracer working after ipapi.get replaced with get_ipython #3511

merged 1 commit into from Jul 2, 2013

Conversation

punchagan
Copy link
Contributor

Commit 790f731 replaced ipapi.get with a get_ipython function,
that changed the API slightly, returning None when no InteractiveShell
instance has been registered.

@@ -206,6 +206,10 @@ def __init__(self,color_scheme='NoColor',completekey=None,

self.shell = get_ipython()

if self.shell is None:
from IPython.core.interactiveshell import InteractiveShell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be IPython.terminal.interactiveshell.TerminalInteractiveShell

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add a comment to the effect of:

# no IPython instance running, we must create one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed, Thanks!

Commit 790f731 replaced `ipapi.get` with a `get_ipython` function,
that changed the API slightly, returning None when no InteractiveShell
instance has been registered.
minrk added a commit that referenced this pull request Jul 2, 2013
Get Tracer working when no IPython instance is running
@minrk minrk merged commit 482ccc3 into ipython:master Jul 2, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Get Tracer working when no IPython instance is running
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.

None yet

2 participants