472,122 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

decent interactive python shell on MS Windows?

Hi everyone,

After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?

I have tried the python.org shell (difficult copy-pasting),
ActiveState's (no readline command history) and iPython (difficult
copy-pasting). Do you know of any decent interactive python shell on
Windows that comes close to the friendliness of the standard one on
Linux?

Thanks in advance

James
Oct 1 '08 #1
8 5468
ja***********@gmail.com wrote:
Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?

Yes. The Windows command shell does all these
things. To do use mouse selecting and right-click
pasting, go to the System Menu on your console and select
Properties Options Quick Edit Mode. You can then
use the mouse to select an area (as though on notepad)
and <Enterto select. Likewise, already-selected text
can be right-click pasted straight in. I use this whenever
I'm posting code-samples to this list: I work them up in
a console, select-copy them out, paste them into an email,
then select-copy them back and paste into a new console
to make sure I haven't made any assumptions.

Check out the use of up/down arrows as usual, plus
F7 for history and F8 for history-completion.

It's not everyone's cup of tea but I've been using
it happily for years.

TJG
Oct 1 '08 #2
ja***********@gmail.com wrote:
Hi everyone,

After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?

I have tried the python.org shell (difficult copy-pasting),
ActiveState's (no readline command history) and iPython (difficult
copy-pasting). Do you know of any decent interactive python shell on
Windows that comes close to the friendliness of the standard one on
Linux?

Thanks in advance

James
--
http://mail.python.org/mailman/listinfo/python-list
I use a window's port of
rxvt
running cygwin's bash shell.

Bash gives you all the command-history readline like capabilities, and
the rxvt window implements all the cut/past mouse actions you're used to
from Linux/Unix terminal windows.

Together, these make windows feel almost civilized.

Happy Googling for them,
Gary Herron

Oct 1 '08 #3
Il Wed, 1 Oct 2008 09:53:48 -0700 (PDT), ja***********@gmail.com ha scritto:
Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)
1) Right mouse button on the link to open a command shell
2) select the tab Options
3) in the box Edit Options, check the Rapid Edit Mode
4) click OK

Now you can use the left mouse button to highlight a portion of the shell
and the right button to paste it.
>
- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?
Idle or (better) iPython. The copy/paste 'problem' is solved above.

D.
Oct 1 '08 #4
ja***********@gmail.com wrote:
Hi everyone,

After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?

I have tried the python.org shell (difficult copy-pasting),
ActiveState's (no readline command history) and iPython (difficult
copy-pasting). Do you know of any decent interactive python shell on
Windows that comes close to the friendliness of the standard one on
Linux?
Hi James,

It sounds like a decent Editor/IDE would also fit this problem. Most
modern Python IDE's can provide a Python interactive shell session as
part of the editor with nice readline, copy/paste support:
http://wiki.python.org/moin/Integrat...ntEnvironments

Komodo IDE for example, comes with a nice regex helper tool for testing
regular expressions... so there isn't as much of a need for the
interactive shell when creating/testing regular expressions:
http://docs.activestate.com/komodo/4...rx.html#rx_top

Cheers,
Todd
Oct 1 '08 #5
On Oct 1, 9:53*am, james.kiri...@gmail.com wrote:
Hi everyone,

After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?

I have tried the python.org shell (difficult copy-pasting),
ActiveState's (no readline command history) and iPython (difficult
copy-pasting). Do you know of any decent interactive python shell on
Windows that comes close to the friendliness of the standard one on
Linux?

Thanks in advance

James
Which is the 'standard' one you use on Linux? Are you unhappy with
Idle? It's there in your start menu under Python. You can also try
PythonWin's python interpreter, which is pretty nice, and PyCrust/
PyShell/etc, which come with the wxPython demo bundle.

Then you can move up to Komodo or the Wing IDE, which are more
comprehensive but not really nice for just the sort of regex-testing,
desktop calculator tasks where you want something up and running
quickly.
Oct 1 '08 #6
On Oct 1, 3:10*pm, Jason Scheirer <jason.schei...@gmail.comwrote:
On Oct 1, 9:53*am, james.kiri...@gmail.com wrote:
Hi everyone,
After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.
Is there an interactive Python shell on Windows that supports:
- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)
- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?
I have tried the python.org shell (difficult copy-pasting),
ActiveState's (no readline command history) and iPython (difficult
copy-pasting). Do you know of any decent interactive python shell on
Windows that comes close to the friendliness of the standard one on
Linux?
Thanks in advance
James
Dear all

Thank you for your excellent replies. With your help all is good now,
and my python coding is as productive as before. :)

~james
Oct 1 '08 #7
Jason Scheirer wrote:
On Oct 1, 9:53 am, james.kiri...@gmail.com wrote:
>Hi everyone,

After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)
I don't know what you call easy,
but in windows we simply drag and drop,
try that on Linux ;-)

e.g. PyScripter can do that, don't know your other demands

cheers,
Stef

Oct 1 '08 #8
-----Original Message-----
From: py********************************@python.org [mailto:python-
li*************************@python.org] On Behalf Of
ja***********@gmail.com
Sent: Wednesday, October 01, 2008 12:54 PM
To: py*********@python.org
Subject: decent interactive python shell on MS Windows?

Is there an interactive Python shell on Windows that supports:

- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)
Just turn QuickEdit on. Create shortcut to CMD.exe (or python.exe.)
Right click the short cut, Properties -Options. Check QuickEdit and
InsertMode. When you save, choose Apply to all... You can paste by
right clicking. To copy just highlight and hit return.

- readline-like command history (up/down for previous/next command,
Ctr-R for searching, etc) ?
CMD has doskey for command history. To search the history, type a few
leading characters of the command you want to recall and press F8. Type
"help doskey" for more info.


*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623
Oct 1 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dave Reed | last post: by
6 posts views Thread by Avi Berkovich | last post: by
2 posts views Thread by Charles Krug | last post: by
11 posts views Thread by rmm | last post: by
3 posts views Thread by R. Bernstein | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.