I'm not sure what is going on under the hood, but here is my setup, code example and problem:
Setup:
- snow leopard (10.6.8)
- Python 2.7.2 (provide EPD 7.1-2)
- iPython 0.11 (provided by EPD 7.1-2)
- matplotlib (provided by EPD 7.1-2)
code example:
import numpy as np import pylab as pl x=np.random.normal(size=(1000,)) pl.plot(x)
Problem:
I cannot use standard Mac OS X scripts to access the window generated by the plot command.
For example, I cannot Command - Tab to a window. Thus, if the window is outside another window, I need to point it at it! Command - W does not close it.
Obviously, this is unacceptable. It seems that maybe starting Lion instead of Leopard might fix this, but I haven't updated yet. I feel the problem is that iPython generates windows that in a sense are not completely Cocoa -aware, but I really know very little, so I'm not very sure about this hypothesis.
Therefore, any ideas on how to resolve or work around this problem will be greatly appreciated.
source share