|Embed IPython embedded sample||Christoph Schmidt-Hieber||9/21/09 8:33 AM|
I wondered whether it would be possible to embed IPython rather than Pycrust in the embedded sample. I've tried to play around with the wx frontend sample code that is provided with my IPython distribution, located in ipython/IPython/gui/wx/*.* and ipython/IPython/frontend/wx/*.* in my case. Both of these implementations seem to rely on being called from main(), since they will complain about a missing sys.argv attribute. I tried something along the lines of:
ipython_panel = IPShellWidget(self,background_color = "BLACK")
in the embedded_sample.py, which resulted in the error message attached below. Any ideas how I could avoid this problem?
Traceback (most recent call last):
|Re: [wxPython-dev] Embed IPython embedded sample||Robin Dunn||9/21/09 11:07 AM|
|Re: [wxPython-dev] Re: Embed IPython embedded sample||Christoph Schmidt-Hieber||9/22/09 7:10 AM|
On Mon, 21 Sep 2009, Robin Dunn wrote:
>> AttributeError: 'module' object has no attribute 'argv'
Thanks a lot, that worked.