-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
No output with ipdb debugger #5247
Comments
It turns out ipdb explicitly resets |
Guys, I can see the fix in ipdb, but it tests against nose having been loaded and when I'm running ipython notebooks nose modules are in fact loaded, so the output still redirects to the console in which the notebook is running rather than the notebook itself. I've commented out the fix locally (where the code runs the test 'if 'nose' in sys.modules.keys():' prior to defining io.stdout so that io.stdout is not redefined: if 'nose' in sys.modules.keys():
def update_stdout():
# setup stdout to ensure output is available with nose
# io.stdout = sys.stdout = sys.__stdout__
pass This does work in my local installation, but likely causes issues with nose tests, which was the initial source of this particular bug. I could very well be doing something wrong with ipython on my end, it's a stock installation via brew on yosemite, using the latest ipython and ipdb code installed via pip. |
As in #5306, I believe this is an ipdb issue, not anything we can fix. |
If I create a cell in the notebook that contains a function which calls the ipdb debugger, e.g.:
Then calling
f
will drop into ipdb, but running anything in the interactive prompt fails to print the relevant output, for example:I'm not sure if this is an IPython bug or an ipdb bug, or possibly an interaction of the two.
The text was updated successfully, but these errors were encountered: