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
Issue with ipython and ipykernel #475
Comments
Thanks for the report. Adding the following before the (for you) crashing code (https://github.com/pdbpp/pdbpp/blob/0.10.3/pdb.py#L169, installed as
print("===", self, Pdb)
print("===", type(self), type(Pdb))
|
So I double checked python version, i have 1: Adding the print statements results in the following:
I added the print statements at the following (on line 169) in the follwing file for my local -
Hope this info helps, let me know if you need more! |
I too have observed this issue. @blueyed, when you failed to reproduce, were you testing in a command-line ipython shell, or via a jupyter notebook? I have found that using an ipython shell with pdbpp works fine (and the print statements above produce the same output you showed), but doing the same thing in a jupyter notebook produces the error @ThomVett noted, along with the identical printed output to what he reported. I am using python 3.9.7, with pdbpp 0.10.3, and miniconda managing the virtual environments. Installing the latest
Regarding running without custom user config, unfortunately |
@blueyed Can I ask you to please try to repro this bug via jupyter notebook? This issue reproduces trivially for me in a jupyter notebook, but not in the command-line ipython shell. I believe that @ThomVett was using the notebook in the original report. Anyhow, this bug makes pdbpp unusable for anyone who ever uses jupyter notebooks; it would be good to get some traction on it if possible. |
So it might be fixed on the main/master branch then already apparently. In general I recommend using the master branch though anyway still. |
Sorry, I am not sure I follow. The text you quoted above, @blueyed, states pretty clearly that using the master branch does NOT fix the problem. So there is no fix and nothing to backport. However, that was from some months ago, so I tried again with the latest master to see if some fix had magically appeared in the interim. This is not the case; postmortem debugging in a jupyter notebook is still broken when Complete reproduction code in a clean conda environment and the full stacktrace are below.
Then click "new" in the upper right of the browser window that is opened and choose a new python session. In the first cell, paste:
then press shift-enter to run the cell. In the next cell, type
and again press shift-enter, wait a moment for the recursion depth to be exceeded, and observe the following stack trace:
|
This comment was marked as outdated.
This comment was marked as outdated.
Sorry for the confusion due to my misunderstanding.
That might be something interesting to git-bisect then, if it is different from the released version. |
Dear pdbpp team,
I've been working in jupyter notebooks that have
pdbpp
installed in the virtual environment. I'm a user of the%debug
magic function which lets me launch a debugger when an exception is raised from one of the jupyter notebook cells.I use the following test code in a cell:
and then use
%debug
in the next cell to jump in the debugger.With the latest ipython (7.28) and pdbpp (10.3), this causes an issue and we get in the following error:
Attached is the requirements.txt file of the test env where I reproduced this.
pdbpp_requirements.txt
Workaround
Uninstalling
pdbpp
immediately fixed the issue.The text was updated successfully, but these errors were encountered: