From: Emin.shopper Martinian.s. <emi...@gm...> - 2006-12-01 14:51:41
|
Dear Nicolas, Thank you very much for your suggestion. I can now use matplotlib and pylab in non-interactive mode in emacs, which makes me very happy. The only thing that would make me even happier is if I could use matplotlib/pylab in interative mode through emacs :). That's probably a longer term issue, though. Thanks again, -Emin On 11/27/06, Nicolas Grilly <nic...@ga...> wrote: > > 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. > |