[IPython-user] embedded shell forgets global imports

Yaroslav Bulatov yaroslavvb at gmail.com
Wed Sep 21 00:51:56 CDT 2005

When I drop into embedded IPython from within function, I can't access
my global imports for that script file. Is this intended behaviour? Is
there a way to make those imports accessible to embedded shell?

import pylab

from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()

def a():


In [2]: %run deleteme.py
In [1]: pylab
exceptions.NameError                                 Traceback (most recent call


NameError: name 'pylab' is not defined

PS: is there a way to search the mailing list archives?

Yaroslav Bulatov
bulatov at cs.oregonstate.edu
Dearborn 102
Oregon State University
Corvallis, OR

More information about the IPython-user mailing list