[IPython-User] embedding ipython in pygtk

Zoltán Vörös zvoros@gmail....
Fri Mar 16 15:47:35 CDT 2012

Thanks Julian!
I have tried to run that code, but I get an error. Is this ipython_view 
supposed to work with ipython 0.13? On the thread that you sent the 
discussion was revolving around 0.11.

Here is the traceback, if it is of any help:

 >>> import ipython_view as ip
 >>> v = ip.IPythonView()
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "ipython_view.py", line 491, in __init__
   File "ipython_view.py", line 130, in execute
     self.prompt = self.IP.hooks.generate_prompt(self.iter_more)
"/usr/local/lib/python2.7/dist-packages/IPython/utils/ipstruct.py", line 
151, in __getattr__
     raise AttributeError(key)
AttributeError: generate_prompt


On 03/16/2012 09:10 PM, Julian Taylor wrote:
> On 03/16/2012 08:32 PM, Zoltán Vörös wrote:
>> Hi All,
>> I would like to drop an ipython console into a gtk textview, but I can't
>> find information on how to set this up. In the old wiki, there is a
>> reference to ipython_view.py, but that uses the IPython.iplib method,
>> which is probably on death row now. Could someone comment on this
>> problem? Was iplib superseded by something, or it was killed altogether?
>> IPython.Shell is also missing from the newer ipython versions. Is there
>> a replacement for that?
>> Cheers,
>> Zoltán
> see this bug for a somewhat working version for gtk:
> https://bugzilla.gnome.org/show_bug.cgi?id=659296

More information about the IPython-User mailing list