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: 1. Terminal 1 ```shell pip install jupyter ipyparallel ipcluster nbextension enable jupyter server extension enable ipyparallel ipcluster start --n=1 ``` 2. Terminal 2 ```shell jupyter notebook ``` 3. Create new notebook 4. Cell 1: `import this` -> works fine 5. Cell 2: ```python import ipyparallel as ipp rc = ipp.Client() dview = rc[:] ``` -> works fine 6. Cell 3: ```python %%px import os print(f"Hello from engine {os.getpid()}") ``` -> works fine 7. Cell 4: ```python 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](https://github.com/user-attachments/files/16949971/BugReproduce.zip) Additional: `%pxresult` shows Traceback in cell were it was executed Any idea how to overcome it?
Activity
[-]Errors shown under wrong cell using magics[/-][+][BUG] Errors shown under wrong cell using magics[/+][-][BUG] Errors shown under wrong cell using magics[/-][+]Errors shown under wrong cell using magics[/+]minrk commentedon Oct 30, 2024
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:
piotrszajer commentedon Nov 4, 2024
@minrk Thank you very much :)