You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this comment for an explanation, but in brief, your list comprehension creates a closure over obj, and closures don't play nicely with dynamic evaluation (which is what embed does).
This has been a bug in embed() for years, and we haven't managed to find a solution. It seems to be a limitation of Python itself. I'll have another think, but don't hold your breath.
Closing as a duplicate of #136, but feel free to keep using this thread if you want any more clarification.
Usually I correctly get the scope where I break to console in IPython with
However, I have discovered a condition where something appears not to work properly. Take the following code for example:
Once you get to the console here, ees is correctly set. However, if you attempt:
you get
Of course it is defined. I just used it in the same scope. Am I missing something here?
The text was updated successfully, but these errors were encountered: