decent interactive python shell on MS Windows?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • james.kirin39@gmail.com

    #1

    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
  • Tim Golden

    #2
    Re: decent interactive python shell on MS Windows?

    james.kirin39@g mail.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

    Comment

    • Gary Herron

      #3
      Re: decent interactive python shell on MS Windows?

      james.kirin39@g mail.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
      --

      >
      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



      Comment

      • David

        #4
        Re: decent interactive python shell on MS Windows?

        Il Wed, 1 Oct 2008 09:53:48 -0700 (PDT), james.kirin39@g mail.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.

        Comment

        • Todd Whiteman

          #5
          Re: decent interactive python shell on MS Windows?

          james.kirin39@g mail.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:


          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:


          Cheers,
          Todd

          Comment

          • Jason Scheirer

            #6
            Re: decent interactive python shell on MS Windows?

            On Oct 1, 9:53 am, james.kiri...@g mail.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.

            Comment

            • james.kirin39@gmail.com

              #7
              Re: decent interactive python shell on MS Windows?

              On Oct 1, 3:10 pm, Jason Scheirer <jason.schei... @gmail.comwrote :
              On Oct 1, 9:53 am, james.kiri...@g mail.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

              Comment

              • Stef Mientki

                #8
                Re: decent interactive python shell on MS Windows?

                Jason Scheirer wrote:
                On Oct 1, 9:53 am, james.kiri...@g mail.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

                Comment

                • Reedick, Andrew

                  #9
                  RE: decent interactive python shell on MS Windows?

                  -----Original Message-----
                  From: python-list-bounces+jr9445= att.com@python. org [mailto:python-
                  list-bounces+jr9445= att.com@python. org] On Behalf Of
                  james.kirin39@g mail.com
                  Sent: Wednesday, October 01, 2008 12:54 PM
                  To: python-list@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


                  Comment

                  Working...