Skip to content
This repository

Make tracebacks from %paste show the code #865

Closed
asmeurer opened this Issue October 12, 2011 · 4 comments

4 participants

Aaron Meurer Thomas Kluyver Fernando Perez Min RK
Aaron Meurer

If I just paste code into IPython and there is a traceback, it shows me where in the code the exception was raised. But if I use %paste (which is apparently more recommended), it does not do this.

Min RK
Owner

I think just calling self.run_cell instead of going straight to exec should fix it.

Thomas Kluyver
Collaborator
Min RK
Owner

I think that's a good idea - there are only a few places where store_history=True is really what should happen. And it's not at all dangerous to accidentally have store_history=False, whereas inappropriate store_history=True makes a huge mess.

Thomas Kluyver takluyver referenced this issue from a commit in takluyver/ipython October 15, 2011
Thomas Kluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
9281c5b
Thomas Kluyver
Collaborator

See PR #878.

Thomas Kluyver takluyver closed this issue from a commit October 15, 2011
Thomas Kluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
9281c5b
Thomas Kluyver takluyver closed this in 9281c5b October 14, 2011
Fernando Perez fperez closed this in cdfc2e6 October 14, 2011
Brian E. Granger ellisonbg referenced this issue from a commit January 10, 2012
Commit has since been removed from the repository and is no longer available.
Fernando Perez fperez referenced this issue from a commit January 10, 2012
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.