[Pythonmac-SIG] ipython/tk interactive

James Boyle boyle5 at llnl.gov
Thu Aug 19 20:17:01 CEST 2004


Brilliant - Thanks very much

Jim
On Aug 19, 2004, at 10:57 AM, Bob Ippolito wrote:

>
> On Aug 19, 2004, at 1:46 PM, James Boyle wrote:
>
>> I almost exclusively use ipython in my work. However, I have a 
>> problem using ipython and Tk.
>> Using pythonw I can use Tk without any problem.
>>
>> the ipython startup script is at its simplest:
>>
>> #!/usr/bin/python
>> # -*- coding: iso-8859-1 -*-
>> import IPython
>> IPython.Shell.IPShell().mainloop()
>>
>> I can start up using pythonw and perform the actions of the script by 
>> hand and get  an ipython shell that can be used
>> with Tk.  Just using the ipython script and Tk results in the dreaded 
>> SetFrontProcess failed,-606.
>>
>> My question is this - is there anyway to modify the ipython script to 
>> enable use of Tk.  I would like to keep my usage of ipython
>> consistent across platforms.
>> I have looked at what pythonw does and what the ipython startup does 
>> but so far I have not gotten it to work.
>> I am on OSX 10.3.5 and use the Apple python + the Mac Addons + Tk 
>> from package manager.
>>
>> Thanks for any suggestions / help.
>
> pythonw `which ipython`
>
> or (tcsh syntax, anyway.. could go in your .tcshrc or whatever)
>
> alias ipython "pythonw `which ipython`"
>
> -bob
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>



More information about the Pythonmac-SIG mailing list