[IPython-user] Running with pythonw

Brice Thurin B.P.S.Thurin at city.ac.uk
Tue Jul 26 09:34:53 CDT 2005


I figure it out:
I changed the first line of the /usr/local/bin/ipython from
-	#!/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/ 
Python.app/Contents/MacOS/Python
+	#!/usr/bin/env /usr/bin/pythonw

I found the trick here:  
http://ulaluma.com/pyx/archives/2004/02/running_scripts.html

On 26 Jul 2005, at 14:37, Brice Thurin wrote:

> Dear all,
>
> I installed recently ipython on a Mac under Mac OSX panther. I  
> followed the instruction to use it with wx GUI.
> When I looked at my ipython file in /usr/local/bin, I've got the right  
> first line:
> #!/Library/Frameworks/Python.framework/Versions/2.4/Resources/ 
> Python.app/Contents/MacOS/Python
>
> But when I run it with the -pylab option, I got the following message:
> 	This program needs access to the screen. Please run with 'pythonw',
> 	not 'python', and only when you are logged in on the main display of
> 	your Mac.
> So, I am a bit confused.
>
> The only way, i found to run it is to run first pythonw and then  
> import IPyhton.
> Unfortunately, the interactive mode is not working properly, when I  
> use this way, as I don't know how to launch with the pylab option,  
> with this way.
>
> I thank you in advance for your help.
>
> Brice
>
>
> Brice Thurin
>
> Department of Optometry and Visual Science
> City University, Northampton Square
> London, EC1V 0HB, UK.
> http://www.city.ac.uk/optometry/Luis/myresearch/Research/ 
> scatteringproper.html
> http://www.sharpeye.org/
>
> Tel: +44 (0)20 7040 4157
> Fax: +44(0)20 7040 8355
> e-mail: B.P.S.Thurin at city.ac.uk
>
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.net
> http://scipy.net/mailman/listinfo/ipython-user
>
>
Brice Thurin

Department of Optometry and Visual Science
City University, Northampton Square
London, EC1V 0HB, UK.
http://www.city.ac.uk/optometry/Luis/myresearch/Research/ 
scatteringproper.html
http://www.sharpeye.org/

Tel: +44 (0)20 7040 4157
Fax: +44(0)20 7040 8355
e-mail: B.P.S.Thurin at city.ac.uk




More information about the IPython-user mailing list