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
{{ message }}
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Embedding IPython results in issues where import statements and other
globals changes in the shell environment don't work as expected.[1]
As an example, the following commands result in a NameError:
In [1]: import time
In [2]: def foo():
...: print(time.time())
...:
In [3]: foo()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-c19b6d9633cf> in <module>
----> 1 foo()
<ipython-input-2-a038e7f91c93> in foo()
1 def foo():
----> 2 print(time.time())
3
NameError: name 'time' is not defined
By switching to use "start_ipython()" instead, we get an environment
more similar to what we get by running `ipython` directly.
[1] ipython/ipython#62
0 commit comments