Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make tracebacks from %paste show the code #865

Closed
asmeurer opened this Issue · 4 comments

4 participants

Aaron Meurer Min RK Thomas Kluyver Fernando Perez
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
Owner
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
Thomas Kluyver takluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
9281c5b
Thomas Kluyver
Owner

See PR #878.

Thomas Kluyver takluyver closed this issue from a commit
Thomas Kluyver takluyver 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
Fernando Perez fperez closed this in cdfc2e6
Brian E. Granger ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Fernando Perez fperez referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
matthew von rocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
Thomas Kluyver takluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
18a77a7
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.