We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm facing an issue where Traceback is shown under first cell, where IPyParallel is defined, not under the actual cell in which error was raised.
Steps to reproduce:
pip install jupyter ipyparallel ipcluster nbextension enable jupyter server extension enable ipyparallel ipcluster start --n=1
jupyter notebook
import this
import ipyparallel as ipp rc = ipp.Client() dview = rc[:]
-> works fine 6. Cell 3:
%%px import os print(f"Hello from engine {os.getpid()}")
-> works fine 7. Cell 4:
1/0
-> Traceback is printed under cell 2
What's more, further execution of cell 4 results in adding Traceback under cell 2, when cell 2 is re-run then Traceback stopped to show.
BugReproduce.zip
Additional: %pxresult shows Traceback in cell were it was executed
%pxresult
Any idea how to overcome it?
The text was updated successfully, but these errors were encountered:
Thanks for reporting! This is fixed by #905
If you need a workaround today, you can do the same thing with some private API calls:
import sys from threading import current_thread def _detach_thread_output(rc): thread_ident = current_thread().ident for stream in [sys.stdout, sys.stderr]: for name in ("_thread_to_parent", "_thread_to_parent_header"): mapping = getattr(stream, name, None) if mapping: mapping.pop(thread_ident, None) rc._io_loop.add_callback(_detach_thread_output, rc)
Sorry, something went wrong.
@minrk Thank you very much :)
Successfully merging a pull request may close this issue.
Hi, I'm facing an issue where Traceback is shown under first cell, where IPyParallel is defined, not under the actual cell in which error was raised.
Steps to reproduce:
import this
-> works fine-> works fine
6. Cell 3:
-> works fine
7. Cell 4:
-> Traceback is printed under cell 2
What's more, further execution of cell 4 results in adding Traceback under cell 2, when cell 2 is re-run then Traceback stopped to show.
BugReproduce.zip
Additional:
%pxresult
shows Traceback in cell were it was executedAny idea how to overcome it?
The text was updated successfully, but these errors were encountered: