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

Traceback: Jump to code #42

Closed
maxhgerlach opened this issue Apr 30, 2015 · 5 comments
Closed

Traceback: Jump to code #42

maxhgerlach opened this issue Apr 30, 2015 · 5 comments

Comments

@maxhgerlach
Copy link
Contributor

When there's a Python error in a cell of a notebook, I can get a nice traceback with C-c C-x, but I cannot jump to the location of the error with RET at least if the error does not origin in some external file. The message is File <ipython-input-87-7987bc9ea0c8> does not exist or similar.

Looking at the code, this may not actually be supposed to work. Would it be hard to allow jumping to the line in a notebook buffer?

In any case, thanks a lot for keeping EIN alive!

@millejoh
Copy link
Owner

millejoh commented May 3, 2015

I believe the input-<number> tells you which cell generated the error. EIN has a way of jumping to a given cell, so with some magic I might be able to get this to work. I have been busy lately, but I working on ein is actually fun, so I will definitely try to implement this.

@maxhgerlach
Copy link
Contributor Author

Yes, the decimal number definitely corresponds to the cell number. Is the hexadecimal part a hash of the notebook?

Anyway, this would be a very neat feature to have. 👍

@millejoh
Copy link
Owner

millejoh commented May 7, 2015

Okay, with 75c5f36 should be working.

@maxhgerlach
Copy link
Contributor Author

Hi,

I managed to try the latest version from Melpa (20150505.1922).

After pressing RET on a traceback entry, I now get messages "ein:cell-goto: No method definition: ein:cell-goto, (nil)", though.

My Emacs reports as "GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-01-30 on gerlach-VirtualBox".

@maxhgerlach maxhgerlach reopened this May 12, 2015
millejoh added a commit that referenced this issue May 12, 2015
Can jump to notebook cells from traceback buffer, kernel restart command
works on both IPython 2.x and 3.x.
@maxhgerlach
Copy link
Contributor Author

d2681d8 works for me too, thanks! I added some code in the pull request to also go to the right line number within the cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants