[IPython-user] IPShellEmbed problem?

Arnd Baecker arnd.baecker at web.de
Mon Jan 2 12:56:55 CST 2006


Hi,

with ipython-0.7.0.rc1 (sorry if it is fixed already),
I get a KeyError for the example below.

Best, Arnd

#####

"""
Typing `x` at the prompt gives:

[...]

[...]/lib/python2.3/site-packages/IPython/Logger.py in log(self, line,
continuation)
    173         #print '***logging line',line # dbg
    174         #print '***cache_count',
self.shell.outputcache.prompt_count # dbg
--> 175         input_hist = self.shell.user_ns['_ih']
    176         if not continuation and line:
    177             self._iii = self._ii

KeyError: '_ih'



"""

from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()

x=10
ipshell()




More information about the IPython-user mailing list