From: Nicolas G. <nic...@ga...> - 2006-11-27 17:23:00
|
I'm not sure, but I guess you should make matplotlib.interactive(False) and matplotlib.use('PS') BEFORE importing pylab. Nicolas Grilly On 11/16/06, Emin.shopper Martinian.shopper <emi...@gm...> wrote: > Whenever I try to use matplotlib from a python session inside emacs, python > freezes. What I do is start GNU Emacs version 21.1.3 for Windows, do ESC-x > shell and enter the commands shown below. Note that I set the backend to PS > and interactive to false, but my python interpreter still freezes. I suspect > that this is because matplotlib is generating some GUI events which upset > emacs. The example works fine if I run python through the shell without > emacs, but I would very much like to run python through an emacs session. > Similar problems happen with other backends. Any suggestions on how to solve > this problem would be much appreciated. |