Davide Lazzati wrote: > On Mon, Feb 16, 2009 at 8:13 PM, Jeff Whitaker <jsw...@fastmail.fm> wrote: > >> Davide Lazzati wrote: >> >>> Hi, >>> >>> I'm trying to rum python and matlpotlib on a remote mac host from my >>> mac laptop. Both have Mac OS/X 10.5.6 and I'm using ssh -Y ... >>> >>> However, the graphic window does not appear and, when I run p.show() >>> everything gets stuck. >>> >>> Any insight? >>> >>> Thanks >>> >>> >> Davide: This will only work if you use an X11-based backend (like GTK Agg), >> since only X11 is forwarded over SSH. If you're using a mac-native backend, >> the window is popping up on your mac's screen when you do show(). >> >> -Jeff >> > > I've tried to use GTKAgg and it gives me an error message . I'm now > running on the MacOSX backend and the graphic window appears on the > remote screen (where pyton is running) rather than on the local one > (in front of which I am sitting). Any idea on how to open the graphic > window with a MacOSX or TkAgg backends on the local screen while > python is running remote? > > Thanks again > Davide > > > > Davide: As I said before, you have to use a backend compiled with X11 support if you want to ssh to run matplotlib remotely. You probably don't have one, since TkAgg is native OS X and you probably don't have the pre-requisites installed to build the GTKAgg backend. You have two choices:
1) install all the pre-requisites for the GTKAgg backend (don't know what they are offhand, but they include at least gtk2, glib and pygtk2). Package management systems like fink or macports can help with this. 2) use the screen-sharing feature of Leopard to remote control your mac instead of ssh. Then you will see exactly what is on the screen of the remote mac. This will work with any backend, but may be slow and/or complicated if you have firewalls in between the macs. I do this routinely by using the python, pygtk2 and matplotlib packages installed by macports, Never had much luck with remote screen sharing because of firewall issues. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : jeffrey.s.whita...@noaa.gov 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users