473,388 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 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 5560
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Reed | last post by:
I seem to remeber reading somewhere there was a statement you could put in your python program to stop its execution and start the interactive interpreter at that point (and then you could change...
6
by: Avi Berkovich | last post by:
Hello, I was unable to use popen2.popen4 to grab python.exe's (2.3) output, for starts, it doesn't show the version information at the beginning and won't return anything when writing to the...
15
by: Ashot | last post by:
This is sort of both Python and Vim related (which is why I've posted to both newsgroups). Python related: ---------------------- I have been frustrated for quite some time with a lack of a...
2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
11
by: rmm | last post by:
If I replace the open builtin eg import main __main__.__builtins__.open=None Is there any way, from here on, to access the original open function?? Extending this slightly, lets say I put a...
3
by: Pankaj | last post by:
I am facing a very basic problem as any new bie would face. I know perl and now i want to use python In perl, it is very simple , just "perl scriptname.pl" will execute the script. But i...
13
by: dmh2000 | last post by:
I am experimenting with the interactive interpreter environments of Python and Ruby and I ran into what seems to be a fundamental difference. However I may be doing something wrong in Python....
2
by: Matimus | last post by:
On Apr 11, 2:32 am, Evan <xdi...@gmail.comwrote: Do you want a custom shell that does whatever you want? Or do you want an interactive python shell that has some custom commands? For the first...
3
by: R. Bernstein | last post by:
The next release of pydb will have the ability to go into ipython from inside the debugger. Sort of like how in ruby-debug you can go into irb :-) For ipython, this can be done pretty simply;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.