decent interactive python shell on MS Windows?

J

james.kirin39

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
 
R

Reedick, Andrew

-----Original Message-----
From: [email protected] [mailto:python-
[email protected]] On Behalf Of
(e-mail address removed)
Sent: Wednesday, October 01, 2008 12:54 PM
To: (e-mail address removed)
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
 
T

Tim Golden

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 <Enter> to 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
 
G

Gary Herron

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

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
 
T

Todd Whiteman

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/IntegratedDevelopmentEnvironments

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.4/tutorial/tourlet_rx.html#rx_top

Cheers,
Todd
 
J

Jason Scheirer

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.
 
J

james.kirin39

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
 
S

Stef Mientki

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top