Re: [Tutor] Command Line Editting: How to improve options?

2015-04-03 Thread Rajbir Singh
pycharm is IDE for python, ive been using it for a while now, compiles
python script, works as a text editor, allows downloading third party libs,
so far i havnt found anything that i need as python coder and it doesnt
have!! give it a try -- "PyCharm"

On Fri, Apr 3, 2015 at 4:32 AM, J L 
wrote:

> Thank you Steve.
>
>
> This electronic mail including any attachments may contain information
> that is privileged, confidential, and/or otherwise protected from
> disclosure to anyone other than its intended recipient(s). Any
> dissemination of this electronic email or its contents including any
> attachments is prohibited without prior consent.
>
>
>
>  On Thursday, April 2, 2015 5:09 AM, Steven D'Aprano <
> st...@pearwood.info> wrote:
>
>
>  On Thu, Apr 02, 2015 at 06:36:03AM +, J L wrote:
> >  Win 7Python v 3.4.3
> > I'm new to Python and only have coursework under my belt in another
> > object oriented programming language as well as limited systems
> > skills. After launching Python from the command line with py.exe, it
> > appears that the interrupter starts up fine. I've read on Python.Org's
> > site in a tutorial section that some interrupters offer command line
> > editing beyond simple use of the arrow keys and backspace. It does not
> > appear that my environment is allowing these greater abilities. How
> > does one afford increased abilities to edit commands within Python's
> > interrupter? Thank you.
>
>
> Sadly, Windows does not offer much in the way of powerful interactive
> commands like most Linux shells do. You can try these options:
>
> - try using Python's IDLE:
>
> http://www.google.com.au/search?q=how+to+run+IDLE+python
>
> - Use a commercial third-party IDE ("Integrated Development
> Environment") such as PyCharm, Anaconda or Komodo. Some of them may cost
> money, but they may have free or trial versions.
>
> - Or a third-party editor such as Spyder, if it comes with its own
> interactive shell.
>
> - I can strongly recomment iPython, which is very powerful and includes
> a lot of command-line features that even Linux shells don't:
>
> http://ipython.org/
> ‎
> If you've used Mathematica, you may love iPython's "notepad" feature.
>
> Now we start getting to slightly more complex options, which may not
> work, but it would be interesting to try:
>
> - Try installing pyreadline, and see it is will work with Python 3.4. If
> it does, you might be able to convince Python 3.4's rlcompleter module
> to work with it.
>
> - Still if pyreadline works with Python 3.4, you might like my command
> line tab completer and history module rather than the built-in one:
>
> http://code.google.com/p/tabhistory/source/browse/tabhistory.py
>
> I've never tested it on Windows, so I don't know if it will actually
> work or not.
>
>
> Good luck!
>
>
>
> --
> Steve
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
>
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Command Line Editting: How to improve options?

2015-04-02 Thread J L
Thank you Steve. 


This electronic mail including any attachments may contain information that is 
privileged, confidential, and/or otherwise protected from disclosure to anyone 
other than its intended recipient(s). Any dissemination of this electronic 
email or its contents including any attachments is prohibited without prior 
consent.
 


 On Thursday, April 2, 2015 5:09 AM, Steven D'Aprano  
wrote:
   

 On Thu, Apr 02, 2015 at 06:36:03AM +, J L wrote:
>  Win 7Python v 3.4.3
> I'm new to Python and only have coursework under my belt in another 
> object oriented programming language as well as limited systems 
> skills. After launching Python from the command line with py.exe, it 
> appears that the interrupter starts up fine. I've read on Python.Org's 
> site in a tutorial section that some interrupters offer command line 
> editing beyond simple use of the arrow keys and backspace. It does not 
> appear that my environment is allowing these greater abilities. How 
> does one afford increased abilities to edit commands within Python's 
> interrupter? Thank you. 


Sadly, Windows does not offer much in the way of powerful interactive 
commands like most Linux shells do. You can try these options:

- try using Python's IDLE:

http://www.google.com.au/search?q=how+to+run+IDLE+python

- Use a commercial third-party IDE ("Integrated Development 
Environment") such as PyCharm, Anaconda or Komodo. Some of them may cost 
money, but they may have free or trial versions.

- Or a third-party editor such as Spyder, if it comes with its own 
interactive shell.

- I can strongly recomment iPython, which is very powerful and includes 
a lot of command-line features that even Linux shells don't:

http://ipython.org/
‎
If you've used Mathematica, you may love iPython's "notepad" feature.

Now we start getting to slightly more complex options, which may not 
work, but it would be interesting to try:

- Try installing pyreadline, and see it is will work with Python 3.4. If 
it does, you might be able to convince Python 3.4's rlcompleter module 
to work with it.

- Still if pyreadline works with Python 3.4, you might like my command 
line tab completer and history module rather than the built-in one:

http://code.google.com/p/tabhistory/source/browse/tabhistory.py

I've never tested it on Windows, so I don't know if it will actually 
work or not.


Good luck!



-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


  
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Command Line Editting: How to improve options?

2015-04-02 Thread Steven D'Aprano
On Thu, Apr 02, 2015 at 06:36:03AM +, J L wrote:
>  Win 7Python v 3.4.3
> I'm new to Python and only have coursework under my belt in another 
> object oriented programming language as well as limited systems 
> skills. After launching Python from the command line with py.exe, it 
> appears that the interrupter starts up fine. I've read on Python.Org's 
> site in a tutorial section that some interrupters offer command line 
> editing beyond simple use of the arrow keys and backspace. It does not 
> appear that my environment is allowing these greater abilities. How 
> does one afford increased abilities to edit commands within Python's 
> interrupter? Thank you. 


Sadly, Windows does not offer much in the way of powerful interactive 
commands like most Linux shells do. You can try these options:

- try using Python's IDLE:

http://www.google.com.au/search?q=how+to+run+IDLE+python

- Use a commercial third-party IDE ("Integrated Development 
Environment") such as PyCharm, Anaconda or Komodo. Some of them may cost 
money, but they may have free or trial versions.

- Or a third-party editor such as Spyder, if it comes with its own 
interactive shell.

- I can strongly recomment iPython, which is very powerful and includes 
a lot of command-line features that even Linux shells don't:

http://ipython.org/
‎
If you've used Mathematica, you may love iPython's "notepad" feature.

Now we start getting to slightly more complex options, which may not 
work, but it would be interesting to try:

- Try installing pyreadline, and see it is will work with Python 3.4. If 
it does, you might be able to convince Python 3.4's rlcompleter module 
to work with it.

- Still if pyreadline works with Python 3.4, you might like my command 
line tab completer and history module rather than the built-in one:

http://code.google.com/p/tabhistory/source/browse/tabhistory.py

I've never tested it on Windows, so I don't know if it will actually 
work or not.


Good luck!



-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Command Line Editting: How to improve options?

2015-04-02 Thread Alan Gauld

On 02/04/15 07:36, J L wrote:

  Win 7Python v 3.4.3



After launching Python from the command line with py.exe, it appears that the 
interrupter starts up fine.


Thats interpreter, not interrupter. It interprets your commands.


I've read on Python.Org's site in a tutorial section that some interrupters

> offer command line editing

The easiest way for you to get that is to use IDLE, the development tool 
for Python. There should be a menu entry on your OS to launch

IDLE (sometimes called 'Python GUI').

The IDLE interactive shell allows you to use cut n paste, as well as 
keys such as Alt-UP/DOWN to cycle through history etc.


You can get most of these features in the Windows CMD.exe too but you 
need to set some registry entries. Typing HELP CMD at the OS prompt 
brings up a long page describing the features you can choose to

turn on and how.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor