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
"global name is not defined" from embed
with nested list comprehension
#10695
Comments
Another search has brought up #8918, not clear why it's closed though. |
See also #62. There's a limitation of executing Python code in a local namespace, which we haven't found a good way to work around. |
As mentioned in this thread, I post my code here. Hopefully it can partially solve the problems. The code below also loads the startup files for IPython, which is missing from the origin code.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code is valid Python and works fine from a stand-alone IPython shell, but fails from within an
IPython.embed
:The text was updated successfully, but these errors were encountered: