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
%paste regression with blank lines #3246
Comments
@takluyver This is presumably the same as #3178, but the fix in #3202 doesn't cover %paste. A quick fix, I expect? |
Similar, but not quite the same, I think. It looks like it's getting split into multiple cells, so it's trying to execute the block after the blank line separately. |
...the upshot being that it's probably not a trivial fix, but I hope it won't take me too long. I'll look into it shortly. |
+1 I get this as well def test_paste(x, y):
try:
print x + y
except:
z = x + y
print z
return x + y This simple function also does not work. |
@cpcloud it doesn't matter that it's a function, it's just that the new input splitter is splitting the cell on blank lines, when it should be taking the whole paste blob, regardless of the contents. |
I know, just giving another example. |
PR #3390 should fix this. |
I just update to master at 55129be.
I'm able to reproduce with the following code
Copy and %paste it into the terminal
Then if I do
I get
Though if I remove the comment line and define at the prompt
foo=1
I get a return outside of functionThe text was updated successfully, but these errors were encountered: