I'm giving an introductory talk on matplotlib to colleagues next week. I'd
like to run matplotlib in interactive mode from the PythonWin IDE. Is this
possible?
I use PyScripter or occasionally IPython myself, but the python group I'm
talking to have all been set up with PythonWin and my brief is to avoid
confusing then with another IDE.
I'm giving an introductory talk on matplotlib to colleagues next week. I'd
like to run matplotlib in interactive mode from the PythonWin IDE. Is this
possible?
probably not reliably -- pythonWin IDE runs things inside the same interpreter as the IDE itself, and therefore has problems running GUI code with any GUI that MPL supports.
IPython has smarts to start up MPL in another thread to avoid the issues.
Has pythonWin IDE seen any maintenance in the last five years? It may be time for them to move on!
On the other hand, you can still edit code with the IDE, and start it from a command line.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
does that mean that it works for you with PyScripter?
Right now the only way to do more than one plot with MPL with PyScripter is to reinitialize the remote python interpreter over and over again.
If you found a way around that I would be glad to hear about it.
To the rest:
Might there be a way to mimick IPython's behavior of 'creating separate threads' (or whatever it might be that makes IPython do the trick) while importing matplotlib? IPython is great but having an editor/integrated debugger with all the other goodies that PyScripter offers PLUS interactive matplotlib-plotting would be even greater...
Cheers,
Thomas
···
----- Original Message ----- From: "Elfnor" <elfnor@...287...>
To: <matplotlib-users@lists.sourceforge.net>
Sent: Wednesday, December 03, 2008 11:05 PM
Subject: [Matplotlib-users] Can matplotlib be run from PythonWin IDE ininteractive mode?
Hi
I'm giving an introductory talk on matplotlib to colleagues next week. I'd
like to run matplotlib in interactive mode from the PythonWin IDE. Is this
possible?
I use PyScripter or occasionally IPython myself, but the python group I'm
talking to have all been set up with PythonWin and my brief is to avoid
confusing then with another IDE.
does that mean that it works for you with PyScripter?
Right now the only way to do more than one plot with MPL with PyScripter
is
to reinitialize the remote python interpreter over and over again.
If you found a way around that I would be glad to hear about it.
...
I can get two plots from Pyscripter as follows:
Find out where your matplotlibrc file is
import matplotlib
matplotlib.get_configdir()
'H:\\.matplotlib'
edit the matplotlib file in this directory (or copy the example from the
matplotlib site)to set interactive to True and the backend to one of the Tk
or wx options: