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
I am unable to define subsequent functions which reference variables defined outside the body in a jupyter console --existing session. For example
In [1]: xxx = 5
In [2]: def foo():
: xxx
:
In [3]: foo()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
~/foo.py in <module>()
----> 1 foo()
~/foo.py in foo()
1 def foo():
----> 2 xxx
3
NameError: name 'xxx' is not defined
Is this a bug or a limitation of IPython.embed_kernel() when it is put as a top-level exception handler? For instance if I put IPython.embed_kernel() anywhere else I am able to define functions which reference variables defined outside of the body.
My IPython version is 6.2.1 and my version of jupyter console is 5.2.0.
The text was updated successfully, but these errors were encountered:
Consider the following program.
I am unable to define subsequent functions which reference variables defined outside the body in a
jupyter console --existing
session. For exampleIs this a bug or a limitation of
IPython.embed_kernel()
when it is put as a top-level exception handler? For instance if I putIPython.embed_kernel()
anywhere else I am able to define functions which reference variables defined outside of the body.My
IPython
version is6.2.1
and my version ofjupyter console
is5.2.0
.The text was updated successfully, but these errors were encountered: