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
magic interpreter interpretes non magic commands? #3334
Comments
What version of IPython are you running? Even if you can't make it much smaller, can you construct a version of that failure that I can run (i.e. without your |
I currently run a version based on dfc7609 ("based on", because I installed #3312). data_names is only a file with lots of I currently only use the I tried to produce a reproduceable example notebook by just replacing the imports and stubbing out the called functions, but even with that I can't reproduce the error. The only big difference is, that 'compute_author_infos' runs for about 40min and more, the datasets are bigger, and I left out the igraph call completely. I'm curently running it with s/store/sto_re/ and this seems to work |
Hah, found a way to reproduce the run problem: Cell1:
Cell2
Both in a notebook... |
WTF:
-> no error, of course
-> 5 Error lines
-> 5 Error lines
-> NO error lines (was a straight copy from the cell above)
-> same content as cell 1, no error again
-> NO error! WTF? |
It seems to only produce the error if |
Have a look at pull request #3336. |
This avoids the perils of 'multiline specials', where valid Python syntax unexpectedly gets turned into IPython magic commands. Closes ipythongh-3334
The below code throws a
UsageError: Unknown variable '["final_all_"+field]'
error when run in a ipython notebook:I've also seen similar things when I use 'run' as a variable name (
if run%5 == 0: ...
).Unfortunately I can't reproduce this error when I try to construct a small reproduceable example.
The text was updated successfully, but these errors were encountered: