What are the relative advantages of using ipython, pyshell, and pycrust?
I'm interested in opinions from those who've used them enough to develop a
preference.
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
PyCrust and PyShell (as shipped with wxPython) are more or less the same
thing, except PyCrust has the object browser (which can be nice).
Otherwise they run everything you type in the same process as the GUI
that is handling input/output, etc. If you type something that is an
infinite loop, etc., they will never return and you will need to kill
the application (as opposed to Ctrl+C in a console).
I have no experience with ipython.
I personally prefer opening up a console and running python directly
(even though I include a Python console in my editor).
- Josiah
···
Rich Shepard <rshepard@appl-ecosys.com> wrote:
What are the relative advantages of using ipython, pyshell, and pycrust?
I'm interested in opinions from those who've used them enough to develop a
preference.
PyCrust and PyShell (as shipped with wxPython) are more or less the same
thing, except PyCrust has the object browser (which can be nice).
Otherwise they run everything you type in the same process as the GUI that
is handling input/output, etc.
Josiah,
That's what I've observed, too. Guess that I'm trying to find out the
advantage of this compared to ...
I personally prefer opening up a console and running python directly (even
though I include a Python console in my editor).
I have no experience with ipython.
Ipython is -- as far as I can tell -- an enhanced console version of
python.
Thanks,
Rich
···
On Thu, 25 Jan 2007, Josiah Carlson wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Because I prefer the advantages of the drop down auto completion and
the pretty gui with easy & rich cut and paste, I use pycrust pretty
much all the time. On occasion I need to debug or otherwise mess with
something that breaks pycrust and I'll use the regular python shell
for that.
For my purposes, ipython is a strict superset of the regular python
shell, but honestly since I use the command line shell so rarely I
just forget about ipython when I do use it.
···
On 1/25/07, Rich Shepard <rshepard@appl-ecosys.com> wrote:
On Thu, 25 Jan 2007, Josiah Carlson wrote:
> PyCrust and PyShell (as shipped with wxPython) are more or less the same
> thing, except PyCrust has the object browser (which can be nice).
> Otherwise they run everything you type in the same process as the GUI that
> is handling input/output, etc.
Josiah,
That's what I've observed, too. Guess that I'm trying to find out the
advantage of this compared to ...
> I personally prefer opening up a console and running python directly (even
> though I include a Python console in my editor).
> I have no experience with ipython.
Ipython is -- as far as I can tell -- an enhanced console version of
python.
Thanks, Chris. So the choice is really CLI vs GUI and that's unresolvable.
My impressions are confirmed, Thank you both.
Rich
···
On Thu, 25 Jan 2007, Chris Mellon wrote:
Because I prefer the advantages of the drop down auto completion and the
pretty gui with easy & rich cut and paste, I use pycrust pretty much all
the time. On occasion I need to debug or otherwise mess with something
that breaks pycrust and I'll use the regular python shell for that.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Ipython is -- as far as I can tell -- an enhanced console version of
python.
Yes, it is, and I've only just started using it, but it has some serious advantages over the plain shell.
It also has some nice integration with matplotlib.
I'd say:
If you want to use it to test wxPython stuff, use PyCrust, if you want to use it matplotlib, use ipython.
You know, ipython inside pyCrust could be pretty nice!
-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
That's really useful information, Chris. Thank you. I need both under
these criteria.
Rich
···
On Thu, 25 Jan 2007, Christopher Barker wrote:
I'd say:
If you want to use it to test wxPython stuff, use PyCrust, if you want to use it matplotlib, use ipython.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
If you want to use it to test wxPython stuff, use PyCrust, if you want to use it matplotlib, use ipython.
That's really useful information, Chris. Thank you. I need both under
these criteria.
you really should be able to use matplotlib with the wx back-end under PyCrust. I've never tried it, but I expect that pylab wont' work, as it will try to create a new wxApp.
However, if you were to use wxMpl, you could probably pop up an MPL Frame pretty easily from Pycrust.
Maybe I'll give that a try some day...
-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
First I need to fix the wxPython code that worked under 2.6.3.2 but
doesn't work with 2.8.0.1. Then I need to integrate a plotting library to
display curves on the appropriate canvas widget. I've not looked closely at
the options for a while so I don't know if the wxAgg back end works with the
current releases, the differences between matplotlib and wxMPL, etc.
One step at a time. I also need to integrate NumPy arrays and the SciPy
eigen function.
Rich
···
On Thu, 25 Jan 2007, Christopher Barker wrote:
you really should be able to use matplotlib with the wx back-end under
PyCrust. I've never tried it, but I expect that pylab wont' work, as it
will try to create a new wxApp.
However, if you were to use wxMpl, you could probably pop up an MPL Frame pretty easily from Pycrust.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
display curves on the appropriate canvas widget. I've not looked closely at
the options for a while so I don't know if the wxAgg back end works with the current releases,
It's not well tested yet with 2.8...
the differences between matplotlib and wxMPL, etc.
wxMPL is a small set of wrappers that make it a bit easier to embed matplotlib in a wx app. I'd check it out. Also Mplot is worht looking at.
-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