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

@asmeurer

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.

@minrk
Owner

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

@takluyver
Owner
@minrk
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.

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

See PR #878.

@takluyver takluyver closed this issue from a commit
@takluyver takluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
9281c5b
@takluyver takluyver closed this in 9281c5b
@fperez fperez closed this in cdfc2e6
@ellisonbg ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@fperez fperez referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@takluyver 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.