Re: [Tutor] IDLE Usage - was Interpreter Restarts
Eric Brunson wrote: > Alan Gauld wrote: > >> "Eric Brunson" <[EMAIL PROTECTED]> wrote >> >> >> >http://en.wikipedia.org/wiki/GNU_Screen > > > >>> You can only see one screen at a time as far as I know. If you need >>> split screens, use emacs. >>> >>> >> The wiki page shows a split screen session and claims you can >> split any session or have multiple sessions in split windows. >> >> > > Well, if you knew the answer, why'd you ask? > There should have been a smiley after than comment. :-) > You're right, I never new you could do that. > It's kinda cool. I thought the most annoyingly keystroke confusing thing I'd ever do was when I was writing and debugging an IRC bot. I had a screen session with the bot running in one session for debug output, a multi-buffer emacs session in another editing the bot source and the module source, and a BitchX session with multiple screens for the python-help channel, the bot's control channel and the channel the bot was interacting on. Talk about brain stymie trying to get around in that. But now I can throw multiple screen regions on top of it all? That's awesome! > >> >> >>> My *only* complaint about screen is its default control key is >>> Ctrl-a, >>> >>> >> How bizarre, but I guess they need to avoid collisions with the >> clients control key >> >> Thanks for the info. >> >> Alan G. >> >> >> ___ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/mailman/listinfo/tutor >> >> > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Alan Gauld wrote: > I was still on vacation on the 17th so wouldn't have seen it then. > But I just checked the gmane archive and there is nothing from > you on the 17th about screen. (Lots about vim and SSH etc but > not about screen) > > Alan G. This is the last I'll add to this little derailment, thought I'd point out that I just found the message on gmane. In case you care to look, it was sent at 17:49:25 GMT on the 17th, the screen info was under the link to the X11 Forwarding guide. Lacking other evidence, I'll stop worrying about message delivery and simply assume that I shouldn't cover two subjects in one post. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Alan Gauld wrote: > "Eric Brunson" <[EMAIL PROTECTED]> wrote > > http://en.wikipedia.org/wiki/GNU_Screen >> You can only see one screen at a time as far as I know. If you need >> split screens, use emacs. >> > > The wiki page shows a split screen session and claims you can > split any session or have multiple sessions in split windows. > Well, if you knew the answer, why'd you ask? You're right, I never new you could do that. > >> My *only* complaint about screen is its default control key is >> Ctrl-a, >> > > How bizarre, but I guess they need to avoid collisions with the > clients control key > > Thanks for the info. > > Alan G. > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
"Robert H. Haener IV" <[EMAIL PROTECTED]> wrote > This is the second message I've seen asking some questions > about screen which I already answered on the 17th. > I know this is more than a little OT, I'm just wondering if somehow > you didn't get that message. I was still on vacation on the 17th so wouldn't have seen it then. But I just checked the gmane archive and there is nothing from you on the 17th about screen. (Lots about vim and SSH etc but not about screen) Alan G. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Alan Gauld wrote: > I've heard of screen but never used it. > The biggest problem I can see with it is that you can only see one > screen(sic) at a time or use split screens to see partial screens. > > Can you copy/paste between sessions? > Does it run on a remote server within the SSH client? If so how > does it determine screen/window sizes? > > And do you know if you can get it for cygwin - its not installed by > default, at least not on my cygwin. > > Alan G This is the second message I've seen asking some questions about screen which I already answered on the 17th. I know this is more than a little OT, I'm just wondering if somehow you didn't get that message. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
"Eric Brunson" <[EMAIL PROTECTED]> wrote >>>http://en.wikipedia.org/wiki/GNU_Screen >>> > You can only see one screen at a time as far as I know. If you need > split screens, use emacs. The wiki page shows a split screen session and claims you can split any session or have multiple sessions in split windows. > My *only* complaint about screen is its default control key is > Ctrl-a, How bizarre, but I guess they need to avoid collisions with the clients control key Thanks for the info. Alan G. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Alan Gauld wrote: > "Dave Kuhlman" <[EMAIL PROTECTED]> wrote > > >> If you find yourself opening multiple sessions to the same >> UNIX/Linux box, you might want to look into screen, which enables >> you to create and switch between multiple sessions. >> > > >> For more on screen, do "man screen" and look here: >> >>http://en.wikipedia.org/wiki/GNU_Screen >> > > I've heard of screen but never used it. > The biggest problem I can see with it is that you can only see one > screen(sic) at a time or use split screens to see partial screens. > You can only see one screen at a time as far as I know. If you need split screens, use emacs. > Can you copy/paste between sessions? > Yes, either with your native ssh client cut and paste, or with screen's somewhat cumbersome cut and paste, which I personally never use. > Does it run on a remote server within the SSH client? If so how > Yes. > does it determine screen/window sizes? > SIGWINCH+GNU doublegood magic. Screen has its own terminfo/termcap entry, clients write using screens window controls, then the screen application translates those directive to whatever term you're using at the time. > And do you know if you can get it for cygwin - its not installed by > default, at least not on my cygwin. > It's in the repos. The best thing (in my book) about screen, which I've been using for about 17 years, is you can disconnect from a screen session and reconnect from another login. I regularly start a long running process at work, then go home and use "screen -RD" to remotely detach the screen session and reconnect it to my current login. Plus, you don't have to worry about a compilation/database import/whatever dying because your VPN/dialup/cable modem dropped, everything keeps running and you just reattach. My *only* complaint about screen is its default control key is Ctrl-a, which is "beginning of line" in emacs parlance. You have to get used to using "Ctrl-a A" to go to the start of the line, but in all, it's a minor inconvenience. > Alan G > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
"Dave Kuhlman" <[EMAIL PROTECTED]> wrote > If you find yourself opening multiple sessions to the same > UNIX/Linux box, you might want to look into screen, which enables > you to create and switch between multiple sessions. > For more on screen, do "man screen" and look here: > >http://en.wikipedia.org/wiki/GNU_Screen I've heard of screen but never used it. The biggest problem I can see with it is that you can only see one screen(sic) at a time or use split screens to see partial screens. Can you copy/paste between sessions? Does it run on a remote server within the SSH client? If so how does it determine screen/window sizes? And do you know if you can get it for cygwin - its not installed by default, at least not on my cygwin. Alan G ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
On Sun, Jul 22, 2007 at 10:39:51AM +0100, Alan Gauld wrote: > > > OK, Personally I'd forget about a GUI, its not that big a win for > Python IMHO. > > What I'd do instead is open two SSH sessions, in one of them I'd open > a > vim session (or emacs if you prefer) to edit my code. In the second > window > open a python interactive session for testing stuff. You can also use > Unix > job control to background this session if you need to test the > scripts, or > you can open a third SSH session with a Unix shell prompt. In practice > that's how I do nearly all my serious Python programming on Windows > - using 3 separate windows: vim, Pyhon and shell. And, the screen program might give you a bit of convenience. If you find yourself opening multiple sessions to the same UNIX/Linux box, you might want to look into screen, which enables you to create and switch between multiple sessions. I'm a command-line kind of person and I use screen heavily, even on my local machine, where instead of opening multiple xterm (Eterm, konsole, whatever) windows, I use screen create multiple sessions in a single window. For more on screen, do "man screen" and look here: http://en.wikipedia.org/wiki/GNU_Screen Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Alan, Actually, I think you just solved one of the main issues I've had. That is, trying to figure out how much it'll help to have the GUI session open with the SSH session (as was recommended when I set out to do these projects). I had it in my mind that having this up and working would mean that these projects would make more sense. I could have been using two SSH sessions all along, I suppose. Another concern was more towards the specific nature of these projects, once I have to concern myself with graphics on a few tasks. For all I know it may not matter either way, but I had to check. I've been talking to someone else off list about that. Anyways, thanks for help! Sara - Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Sunday, July 22, 2007 4:39:51 AM Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts "Sara Johnson" <[EMAIL PROTECTED]> wrote > I use an SSH editor set up by my school. If I type python at the > prompt in SSH, > I get the Python shell. My problem is, I can't open a GUI no matter > what > I subscribe to or purchase. OK, Personally I'd forget about a GUI, its not that big a win for Python IMHO. What I'd do instead is open two SSH sessions, in one of them I'd open a vim session (or emacs if you prefer) to edit my code. In the second window open a python interactive session for testing stuff. You can also use Unix job control to background this session if you need to test the scripts, or you can open a third SSH session with a Unix shell prompt. In practice that's how I do nearly all my serious Python programming on Windows - using 3 separate windows: vim, Pyhon and shell. Try ideas out in the Python session, copy those ideas into the editor and save the file and then run the code in the shell window. Repeat as needed. > I have Python 2.3 and yes, I can access the commandline, but that > does > not work the way it's been described to work. What is missing? It should work like any standard >>> prompt. However it will be the vanilla version without some of the nice extras that IDE shells often provide and depending on how your Python was built it may not offer GNU readline capability to recall previous commands etc. Finally, If you really want to run an X GUI I'd recommend getting cygwin. Its big but it includes a near complete Unix/ X environment for your PC (including the fonts) as well as an SSH client and provi8ded your SSH server allows X to run - and many don't for security reasons - then it should work. You will have to issue the xhosts incantations of course to tell the server to accept requests from your PC. Pesonally I think its more work than is worth it unless you will be doing a lot of work on that server over a long time.. My opinion for what its worth! :-) -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
"Sara Johnson" <[EMAIL PROTECTED]> wrote > I use an SSH editor set up by my school. If I type python at the > prompt in SSH, > I get the Python shell. My problem is, I can't open a GUI no matter > what > I subscribe to or purchase. OK, Personally I'd forget about a GUI, its not that big a win for Python IMHO. What I'd do instead is open two SSH sessions, in one of them I'd open a vim session (or emacs if you prefer) to edit my code. In the second window open a python interactive session for testing stuff. You can also use Unix job control to background this session if you need to test the scripts, or you can open a third SSH session with a Unix shell prompt. In practice that's how I do nearly all my serious Python programming on Windows - using 3 separate windows: vim, Pyhon and shell. Try ideas out in the Python session, copy those ideas into the editor and save the file and then run the code in the shell window. Repeat as needed. > I have Python 2.3 and yes, I can access the commandline, but that > does > not work the way it's been described to work. What is missing? It should work like any standard >>> prompt. However it will be the vanilla version without some of the nice extras that IDE shells often provide and depending on how your Python was built it may not offer GNU readline capability to recall previous commands etc. Finally, If you really want to run an X GUI I'd recommend getting cygwin. Its big but it includes a near complete Unix/ X environment for your PC (including the fonts) as well as an SSH client and provi8ded your SSH server allows X to run - and many don't for security reasons - then it should work. You will have to issue the xhosts incantations of course to tell the server to accept requests from your PC. Pesonally I think its more work than is worth it unless you will be doing a lot of work on that server over a long time.. My opinion for what its worth! :-) -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
here's a link to the very brief vi get-started web page: http://www.sf-lug.com/How2vi.html On Jul 17, 2007, at 11:01 AM, Sara Johnson wrote: > Sure, sounds good. Should I assume that 'any' Unix version allows Vim? > > Thanks, > Sara > > - Original Message > From: jim stockford <[EMAIL PROTECTED]> > To: Sara Johnson <[EMAIL PROTECTED]> > Cc: tutor@python.org > Sent: Tuesday, July 17, 2007 12:30:12 PM > Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts > > you want a very brief set of vi(m) commands-- > a get-you-started tutorial that's nearly painless? > I'll send if "yes". > jim > > On Jul 16, 2007, at 9:26 PM, Sara Johnson wrote: > > > First off, yes, I was referring to (I guess you could say) a > > non-python editor. I use an SSH editor set up by my school. If I > > type python at the prompt in SSH, I get the Python shell. My problem > > is, I can't open a GUI no matter what I subscribe to or purchase. I > > have Python 2.3 and yes, I can access the commandline, but that does > > not work the way it's been described to work. > > > > If this still doesn't make any sense, just ignore me... > > > > Sara > > > > > > >>Not quite what we were discussing, but I think you may have given > > just > > enough clues that i can be of some help. Just for reference ~ which > > editor > > are you using? > > > > IDLE is both an editor and a python shell or interpreter. It is not > > the same > > thing as typing python.exe wherever you might be typing it. > > > > Typing Python into an editor should put the word "Python" into your > > currently open file. I don't believe that this is what you mean. > > Perhaps you > > are confusing what exactly is an editor? > > > > You use Windows you've mentioned before. So here's what you can do. > > Start -> > > Programs -> Python 2.5 -> Python (commandline) > > > > This is the python interpreter. As you might already know. > > > > And then this. > > Start -> Programs -> Python 2.5 -> IDLE (Python GUI) > > > > This is IDLE. As you probably know. > > > > Two windows should come up when you click IDLE. One is an editor. The > > other > > is the python shell, or interpreter. You can open .py files in IDLE > by > > right > > clicking and selecting "Edit with IDLE". At any time that you wish to > > run a > > program that is open in the editor half of IDLE, hit F5 and the > Python > > shell > > half of IDLE comes to the top and runs the program. > > > > If doing all that doesn't do what I expect it to do, or you have > > something > > else in mind, reply back. If it does, then great! > > > > Oh. And tell me which editor you are using which magically opens a > > python > > interpreter when you type Python into it. ;-) > > > > JS > > > > ___ > > Tutor [EMAIL PROTECTED] > > http://mail.python.org/mailman/listinfo/tutor > > > > > > Moody friends. Drama queens. Your life? Nope! - their life, your > story. > > Play Sims Stories at Yahoo! > > Games.___ > > Tutor [EMAIL PROTECTED] > > http://mail.python.org/mailman/listinfo/tutor > > ___ > Tutor [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > > > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get > started.___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Unfortunately, it's the Olympic style leaps now, the baby steps later. But I definitely agree with the process. I do have some information to plow through for now. Thanks to all! Sara > > I'd also recommend that you find and install a Windows version of whatever > editor (whether vi, vim or something else like emacs) you're going to be > using on the Unix box. Play with it locally on your own machine for a > while and get comfortable with it, and then start using the copy on the > unix system. That will let you take baby steps, and gain a little > confidence. > > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
On 7/17/07, Terry Carroll <[EMAIL PROTECTED]> wrote: > Sara -- > > I'd also recommend that you find and install a Windows version of whatever > editor (whether vi, vim or something else like emacs) you're going to be > using on the Unix box. Play with it locally on your own machine for a > while and get comfortable with it, and then start using the copy on the > unix system. That will let you take baby steps, and gain a little > confidence. This is an excellent idea! =) There are tutorials for vi, emacs, etc. available on MS-Windows platforms. -- bhaaluu at gmail dot com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara -- I'd also recommend that you find and install a Windows version of whatever editor (whether vi, vim or something else like emacs) you're going to be using on the Unix box. Play with it locally on your own machine for a while and get comfortable with it, and then start using the copy on the unix system. That will let you take baby steps, and gain a little confidence. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara Johnson wrote: > That's pretty much what I was attempting. I was advised to mark the > "Tunneling" box (TunnelingX11 Connections), and it's checked. I don't > see the X Forwarding option, however. Under that same tab I checked for > anything else system-wise that would pertain and I don't see anything. > Again, I have XWin32 installed, but I probably need to renew it or > somehow get it to work as you've described. Anything else I should check? > >>>For example, I worked on this basic Unix editor 'Pico' before I > learned I could switch to Vi and >>have > Sorry...I meant to say "Putty" not Pico... Not important, just clarifying. > > Thanks, > Sara I have never attempted to use X Forwarding in Windows, but here is a guide that seems to tell you all you need to know: http://www.math.umn.edu/systems_guide/putty_xwin32.html >From what I can gather, you should contact whomever is in charge of the SSH >server if you can't get GUI programs working after following that guide. Also, just so we don't end up massively confusing each other: PuTTy is your "SSH client." The server to which you are connecting is the "SSH server." Pico and Vim are examples of "text editors," which are sometimes called "UNIX editors" by Windows folks. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara Johnson wrote: > Sure, sounds good. Should I assume that 'any' Unix version allows Vim? > > Thanks, > Sara Vim is extremely ubiquitous, you can check to see if it's installed by entering 'which vim' at the shell. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara Johnson wrote: > Everyone who has commented... > > I have XWin32It hasn't worked. I've talked to some people in the IT > departments and they've given me things to check (boxes to check or > uncheck) and that doesn't seem to make a difference. > > When I picked up these projects I was given a lot of stuff and left to > figure it out. I was also left with the impression that I should have > the GUI working. If a lot of Python programmers use SSH, then I guess > there is no problem. But when you're a newbie who really doesn't > understand what they're doing, anything that might make the process a > tad more straight-forward is worth it. For example, I worked on this > basic Unix editor 'Pico' before I learned I could switch to Vi and have > my code color-coordinated so that I knew where my comments were and I > could see if I accidentally commented something out that needs to be > there. So maybe it's not too important that I use the Python shell with > my school's editor program open (as I was advised to do). Some of you > have already seen my confusion from the different questions I've asked > about my code (or rather, the code I've been editing). So I thought > most of the Python programmers preferred to use IDLE and that maybe it > would simplify things just a tad for me. I'm about 2000 miles away from > where I should be with these projects. > > Thanks, > Sara It sounds like the SSH server you're connecting to isn't set to allow X Forwarding; either that, or your SSH client isn't set to use X Forwarding. Here is a page which describes how to use the SSH server's GUI programs from your computer via X Forwarding, bear in mind that it's written with regard to a college's server and therefore will include a few specific instructions that don't apply to you: http://ugweb.cs.ualberta.ca/howtos/XForwarding/index.html If you name the SSH client (which I believe you've been calling an "SSH editor") you're using, I might be able to give you step by step instructions for setting your client to use X Forwarding. If the SSH server doesn't allow X Forwarding, I recommend using a program called 'screen'. Basically, 'screen' allows you to use a shell a bit like the tabbed browsing in Firefox (or Opera, IE7, etc.) by creating a framework wherein you can create new virtual shells and switch between them using keyboard shortcuts. What is more, you can label the virtual shells and even copy/paste text between them. I can give you plenty of information about using 'screen' if you want it, what I'm getting around to is that if I was in your situation I would have the python interpreter running in one virtual shell whilst running vim in another virtual shell. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
- Original Message From: Robert H. Haener IV [EMAIL PROTECTED] If you name the SSH client (which I believe you've been calling an "SSH editor") you're using, I might be able to give you step by step instructions for setting your client to use X Forwarding. If the SSH server doesn't allow X Forwarding, I recommend using a program called 'screen'. Basically, 'screen' allows you to use a shell a bit like the tabbed browsing in Firefox (or Opera, IE7, etc.) by creating a framework wherein you can create new virtual shells and switch between them using keyboard shortcuts. What is more, you can label the virtual shells and even copy/paste text between them. I can give you plenty of information about using 'screen' if you want it, what I'm getting around to is that if I was in your situation I would have the python interpreter running in one virtual shell whilst running vim in another virtual shell. That's pretty much what I was attempting. I was advised to mark the "Tunneling" box (TunnelingX11 Connections), and it's checked. I don't see the X Forwarding option, however. Under that same tab I checked for anything else system-wise that would pertain and I don't see anything. Again, I have XWin32 installed, but I probably need to renew it or somehow get it to work as you've described. Anything else I should check? >>For example, I worked on this basic Unix editor 'Pico' before I learned I >>could switch to Vi and >>have Sorry...I meant to say "Putty" not Pico... Not important, just clarifying. Thanks, Sara Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sure, sounds good. Should I assume that 'any' Unix version allows Vim? Thanks, Sara - Original Message From: jim stockford <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: tutor@python.org Sent: Tuesday, July 17, 2007 12:30:12 PM Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts you want a very brief set of vi(m) commands-- a get-you-started tutorial that's nearly painless? I'll send if "yes". jim On Jul 16, 2007, at 9:26 PM, Sara Johnson wrote: > First off, yes, I was referring to (I guess you could say) a > non-python editor. I use an SSH editor set up by my school. If I > type python at the prompt in SSH, I get the Python shell. My problem > is, I can't open a GUI no matter what I subscribe to or purchase. I > have Python 2.3 and yes, I can access the commandline, but that does > not work the way it's been described to work. > > If this still doesn't make any sense, just ignore me... > > Sara > > > >>Not quite what we were discussing, but I think you may have given > just > enough clues that i can be of some help. Just for reference ~ which > editor > are you using? > > IDLE is both an editor and a python shell or interpreter. It is not > the same > thing as typing python.exe wherever you might be typing it. > > Typing Python into an editor should put the word "Python" into your > currently open file. I don't believe that this is what you mean. > Perhaps you > are confusing what exactly is an editor? > > You use Windows you've mentioned before. So here's what you can do. > Start -> > Programs -> Python 2.5 -> Python (commandline) > > This is the python interpreter. As you might already know. > > And then this. > Start -> Programs -> Python 2.5 -> IDLE (Python GUI) > > This is IDLE. As you probably know. > > Two windows should come up when you click IDLE. One is an editor. The > other > is the python shell, or interpreter. You can open .py files in IDLE by > right > clicking and selecting "Edit with IDLE". At any time that you wish to > run a > program that is open in the editor half of IDLE, hit F5 and the Python > shell > half of IDLE comes to the top and runs the program. > > If doing all that doesn't do what I expect it to do, or you have > something > else in mind, reply back. If it does, then great! > > Oh. And tell me which editor you are using which magically opens a > python > interpreter when you type Python into it. ;-) > > JS > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > > Moody friends. Drama queens. Your life? Nope! - their life, your story. > Play Sims Stories at Yahoo! > Games.___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
you want a very brief set of vi(m) commands-- a get-you-started tutorial that's nearly painless? I'll send if "yes". jim On Jul 16, 2007, at 9:26 PM, Sara Johnson wrote: > First off, yes, I was referring to (I guess you could say) a > non-python editor. I use an SSH editor set up by my school. If I > type python at the prompt in SSH, I get the Python shell. My problem > is, I can't open a GUI no matter what I subscribe to or purchase. I > have Python 2.3 and yes, I can access the commandline, but that does > not work the way it's been described to work. > > If this still doesn't make any sense, just ignore me... > > Sara > > > >>Not quite what we were discussing, but I think you may have given > just > enough clues that i can be of some help. Just for reference ~ which > editor > are you using? > > IDLE is both an editor and a python shell or interpreter. It is not > the same > thing as typing python.exe wherever you might be typing it. > > Typing Python into an editor should put the word "Python" into your > currently open file. I don't believe that this is what you mean. > Perhaps you > are confusing what exactly is an editor? > > You use Windows you've mentioned before. So here's what you can do. > Start -> > Programs -> Python 2.5 -> Python (commandline) > > This is the python interpreter. As you might already know. > > And then this. > Start -> Programs -> Python 2.5 -> IDLE (Python GUI) > > This is IDLE. As you probably know. > > Two windows should come up when you click IDLE. One is an editor. The > other > is the python shell, or interpreter. You can open .py files in IDLE by > right > clicking and selecting "Edit with IDLE". At any time that you wish to > run a > program that is open in the editor half of IDLE, hit F5 and the Python > shell > half of IDLE comes to the top and runs the program. > > If doing all that doesn't do what I expect it to do, or you have > something > else in mind, reply back. If it does, then great! > > Oh. And tell me which editor you are using which magically opens a > python > interpreter when you type Python into it. ;-) > > JS > > ___ > Tutor [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > > > Moody friends. Drama queens. Your life? Nope! - their life, your story. > Play Sims Stories at Yahoo! > Games.___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
change "small" to "large" and you're right. Vim is Vi improved. Any tutorial or reference on Vi ought to work for Vim. On Jul 17, 2007, at 10:09 AM, Sara Johnson wrote: > I initially thought Vim was sort of the same as Vi, just a few small > differences or upgrades. Or have I got that confused? > > Sara > > - Original Message > From: Tiger12506 <[EMAIL PROTECTED]> > To: tutor@python.org > Sent: Tuesday, July 17, 2007 12:33:54 PM > Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts > > Yeah. But she's running Windows. > Perhaps vim is scary to some Windows users. > (I thought it was scary and annoying. Are all those ~ characters > really in > the file or not? > I kept second guessing the editor.) > > --Sara, could you give an example of how it doesn't work? > Just what happens? Just what doesn't happen? > > You say you have Python 2.3 installed... > > > > Greetings, > > > > I use an editor called 'vim' on GNU/Linux. > > I invoke vim on the command-line by typing: vi > > (vi is a link to /usr/bin/vim) > > In my home directory I have a vim config file > > named .vimrc (that is: dot_vimrc [the dot makes it hidden]). > > The .vimrc file has some things in it that do some nice stuff > > for editing Python files; such as syntax highlighting, line numbers, > > indenting, and also runs Python when I press the F2 function key. > > I run vim in an X ternminal called Konsole. I can also run it > > from the command-line in any tty. > > > > Okay, here it is. Just copy/paste this into an editor, and save it > as: > > .vimrc > > > > -8<--Cut Here>8--- > > " .vimrc > > " > > " Created by Jeff Elkner 23 January 2006 > > " Last modified 2 February 2006 > > " > > " Turn on syntax highlighting and autoindenting > > syntax enable > > filetype indent on > > " set autoindent width to 4 spaces (see > > " http://www.vim.org/tips/tip.php?tip_id=83) > > set nu > > set et > > set sw=4 > > set smarttab > > " Bind key to running the python interpreter on the currently > active > > " file. (curtesy of Steve Howell from email dated 1 Feb 2006). > > map :w\|!python % > > -8<--Cut Here>8--- > > > > To use it, just type: vi myCode.py > > (If you don't have a link named vi that points to /usr/bin/vim, > > you'll have to type vim or /usr/bin/vim to get it going... > > since I don't have any idea what you're working at, I can't say.) > > > > Once you're in vim, looking at your code, press F2 to run it. > > > > I understand that Emacs also does Python! =) > > But I won't go there... I don't do Emacs. > > -- > > bhaaluu at gmail dot com > > > > On 7/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > >> A lot of Python programmers > >> use Vi for writing their code. do you have access to that through > SSH? > >> I'm not quite sure what you mean by "SSH editor." > >> -Luke > >> ___ > >> Tutor [EMAIL PROTECTED] > >> http://mail.python.org/mailman/listinfo/tutor > >> > > ___ > > Tutor [EMAIL PROTECTED] > > http://mail.python.org/mailman/listinfo/tutor > > > > ___ > Tutor [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > > > Got a little couch potato? > Check out fun summer activities for > kids.___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Yeah. But she's running Windows. Perhaps vim is scary to some Windows users. (I thought it was scary and annoying. Are all those ~ characters really in the file or not? I kept second guessing the editor.) --Sara, could you give an example of how it doesn't work? Just what happens? Just what doesn't happen? You say you have Python 2.3 installed... > Greetings, > > I use an editor called 'vim' on GNU/Linux. > I invoke vim on the command-line by typing: vi > (vi is a link to /usr/bin/vim) > In my home directory I have a vim config file > named .vimrc (that is: dot_vimrc [the dot makes it hidden]). > The .vimrc file has some things in it that do some nice stuff > for editing Python files; such as syntax highlighting, line numbers, > indenting, and also runs Python when I press the F2 function key. > I run vim in an X ternminal called Konsole. I can also run it > from the command-line in any tty. > > Okay, here it is. Just copy/paste this into an editor, and save it as: > .vimrc > > -8<--Cut Here>8--- > " .vimrc > " > " Created by Jeff Elkner 23 January 2006 > " Last modified 2 February 2006 > " > " Turn on syntax highlighting and autoindenting > syntax enable > filetype indent on > " set autoindent width to 4 spaces (see > " http://www.vim.org/tips/tip.php?tip_id=83) > set nu > set et > set sw=4 > set smarttab > " Bind key to running the python interpreter on the currently active > " file. (curtesy of Steve Howell from email dated 1 Feb 2006). > map :w\|!python % > -8<--Cut Here>8--- > > To use it, just type: vi myCode.py > (If you don't have a link named vi that points to /usr/bin/vim, > you'll have to type vim or /usr/bin/vim to get it going... > since I don't have any idea what you're working at, I can't say.) > > Once you're in vim, looking at your code, press F2 to run it. > > I understand that Emacs also does Python! =) > But I won't go there... I don't do Emacs. > -- > bhaaluu at gmail dot com > > On 7/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: >> A lot of Python programmers >> use Vi for writing their code. do you have access to that through SSH? >> I'm not quite sure what you mean by "SSH editor." >> -Luke >> ___ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/mailman/listinfo/tutor >> > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara Johnson wrote: > I initially thought Vim was sort of the same as Vi, just a few small > differences or upgrades. Or have I got that confused? > > Sara Vim is Vi Improved. I only know enough about its workings to be functional, but as I recall there is practically no difference between vi and vim when in comes to basic editing tasks. -Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sorry all... SSH editor means "Unix" Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
I initially thought Vim was sort of the same as Vi, just a few small differences or upgrades. Or have I got that confused? Sara - Original Message From: Tiger12506 <[EMAIL PROTECTED]> To: tutor@python.org Sent: Tuesday, July 17, 2007 12:33:54 PM Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts Yeah. But she's running Windows. Perhaps vim is scary to some Windows users. (I thought it was scary and annoying. Are all those ~ characters really in the file or not? I kept second guessing the editor.) --Sara, could you give an example of how it doesn't work? Just what happens? Just what doesn't happen? You say you have Python 2.3 installed... > Greetings, > > I use an editor called 'vim' on GNU/Linux. > I invoke vim on the command-line by typing: vi > (vi is a link to /usr/bin/vim) > In my home directory I have a vim config file > named .vimrc (that is: dot_vimrc [the dot makes it hidden]). > The .vimrc file has some things in it that do some nice stuff > for editing Python files; such as syntax highlighting, line numbers, > indenting, and also runs Python when I press the F2 function key. > I run vim in an X ternminal called Konsole. I can also run it > from the command-line in any tty. > > Okay, here it is. Just copy/paste this into an editor, and save it as: > .vimrc > > -8<--Cut Here>8--- > " .vimrc > " > " Created by Jeff Elkner 23 January 2006 > " Last modified 2 February 2006 > " > " Turn on syntax highlighting and autoindenting > syntax enable > filetype indent on > " set autoindent width to 4 spaces (see > " http://www.vim.org/tips/tip.php?tip_id=83) > set nu > set et > set sw=4 > set smarttab > " Bind key to running the python interpreter on the currently active > " file. (curtesy of Steve Howell from email dated 1 Feb 2006). > map :w\|!python % > -8<--Cut Here>8--- > > To use it, just type: vi myCode.py > (If you don't have a link named vi that points to /usr/bin/vim, > you'll have to type vim or /usr/bin/vim to get it going... > since I don't have any idea what you're working at, I can't say.) > > Once you're in vim, looking at your code, press F2 to run it. > > I understand that Emacs also does Python! =) > But I won't go there... I don't do Emacs. > -- > bhaaluu at gmail dot com > > On 7/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: >> A lot of Python programmers >> use Vi for writing their code. do you have access to that through SSH? >> I'm not quite sure what you mean by "SSH editor." >> -Luke >> ___ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/mailman/listinfo/tutor >> > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Everyone who has commented... I have XWin32It hasn't worked. I've talked to some people in the IT departments and they've given me things to check (boxes to check or uncheck) and that doesn't seem to make a difference. When I picked up these projects I was given a lot of stuff and left to figure it out. I was also left with the impression that I should have the GUI working. If a lot of Python programmers use SSH, then I guess there is no problem. But when you're a newbie who really doesn't understand what they're doing, anything that might make the process a tad more straight-forward is worth it. For example, I worked on this basic Unix editor 'Pico' before I learned I could switch to Vi and have my code color-coordinated so that I knew where my comments were and I could see if I accidentally commented something out that needs to be there. So maybe it's not too important that I use the Python shell with my school's editor program open (as I was advised to do). Some of you have already seen my confusion from the different questions I've asked about my code (or rather, the code I've been editing). So I thought most of the Python programmers preferred to use IDLE and that maybe it would simplify things just a tad for me. I'm about 2000 miles away from where I should be with these projects. Thanks, Sara - Original Message From: Luke Paireepinart <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: tutor@python.org Sent: Tuesday, July 17, 2007 12:24:11 AM Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts Sara Johnson wrote: > First off, yes, I was referring to (I guess you could say) a > non-python editor. I use an SSH editor set up by my school. If I > type python at the prompt in SSH, I get the Python shell. My problem > is, I can't open a GUI no matter what I subscribe to or purchase. I > have Python 2.3 and yes, I can access the commandline, but that does > not work the way it's been described to work. > > If this still doesn't make any sense, just ignore me... I'm not sure what your problem is. Does the SSH program provide a file transfer utility? could you write your code on your local computer then just transfer the final code to the server? A lot of Python programmers use Vi for writing their code. do you have access to that through SSH? I'm not quite sure what you mean by "SSH editor." -Luke ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Greetings, I use an editor called 'vim' on GNU/Linux. I invoke vim on the command-line by typing: vi (vi is a link to /usr/bin/vim) In my home directory I have a vim config file named .vimrc (that is: dot_vimrc [the dot makes it hidden]). The .vimrc file has some things in it that do some nice stuff for editing Python files; such as syntax highlighting, line numbers, indenting, and also runs Python when I press the F2 function key. I run vim in an X ternminal called Konsole. I can also run it from the command-line in any tty. Okay, here it is. Just copy/paste this into an editor, and save it as: .vimrc -8<--Cut Here>8--- " .vimrc " " Created by Jeff Elkner 23 January 2006 " Last modified 2 February 2006 " " Turn on syntax highlighting and autoindenting syntax enable filetype indent on " set autoindent width to 4 spaces (see " http://www.vim.org/tips/tip.php?tip_id=83) set nu set et set sw=4 set smarttab " Bind key to running the python interpreter on the currently active " file. (curtesy of Steve Howell from email dated 1 Feb 2006). map :w\|!python % -8<--Cut Here>8--- To use it, just type: vi myCode.py (If you don't have a link named vi that points to /usr/bin/vim, you'll have to type vim or /usr/bin/vim to get it going... since I don't have any idea what you're working at, I can't say.) Once you're in vim, looking at your code, press F2 to run it. I understand that Emacs also does Python! =) But I won't go there... I don't do Emacs. -- bhaaluu at gmail dot com On 7/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > A lot of Python programmers > use Vi for writing their code. do you have access to that through SSH? > I'm not quite sure what you mean by "SSH editor." > -Luke > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
Sara Johnson wrote: > First off, yes, I was referring to (I guess you could say) a > non-python editor. I use an SSH editor set up by my school. If I > type python at the prompt in SSH, I get the Python shell. My problem > is, I can't open a GUI no matter what I subscribe to or purchase. I > have Python 2.3 and yes, I can access the commandline, but that does > not work the way it's been described to work. > > If this still doesn't make any sense, just ignore me... I'm not sure what your problem is. Does the SSH program provide a file transfer utility? could you write your code on your local computer then just transfer the final code to the server? A lot of Python programmers use Vi for writing their code. do you have access to that through SSH? I'm not quite sure what you mean by "SSH editor." -Luke ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] IDLE Usage - was Interpreter Restarts
First off, yes, I was referring to (I guess you could say) a non-python editor. I use an SSH editor set up by my school. If I type python at the prompt in SSH, I get the Python shell. My problem is, I can't open a GUI no matter what I subscribe to or purchase. I have Python 2.3 and yes, I can access the commandline, but that does not work the way it's been described to work. If this still doesn't make any sense, just ignore me... Sara >>Not quite what we were discussing, but I think you may have given just enough clues that i can be of some help. Just for reference ~ which editor are you using? IDLE is both an editor and a python shell or interpreter. It is not the same thing as typing python.exe wherever you might be typing it. Typing Python into an editor should put the word "Python" into your currently open file. I don't believe that this is what you mean. Perhaps you are confusing what exactly is an editor? You use Windows you've mentioned before. So here's what you can do. Start -> Programs -> Python 2.5 -> Python (commandline) This is the python interpreter. As you might already know. And then this. Start -> Programs -> Python 2.5 -> IDLE (Python GUI) This is IDLE. As you probably know. Two windows should come up when you click IDLE. One is an editor. The other is the python shell, or interpreter. You can open .py files in IDLE by right clicking and selecting "Edit with IDLE". At any time that you wish to run a program that is open in the editor half of IDLE, hit F5 and the Python shell half of IDLE comes to the top and runs the program. If doing all that doesn't do what I expect it to do, or you have something else in mind, reply back. If it does, then great! Oh. And tell me which editor you are using which magically opens a python interpreter when you type Python into it. ;-) JS ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] IDLE Usage - was Interpreter Restarts
> Luke, Jacob, et. al... > > Dumb question (may be slightly off course from what you two were > discussing), but are you both describing how to get the IDLE to run along > with the editor? I may just be getting too many things confused. I've > tried to run IDLE, but that's not working. I have the same function > through opening it separately from the Start menu but then it doesn't work > as IDLE should work with the editor (or so I've been told that happens). > I can type the word Python in my editor and it comes up, but then the > editor is gone. I've gone so long with just SSH, but at this point it's > worth it if I find a way that makes sense. As someone mentioned from this > list, at least it'll be code that is easier to read for a newbie like > myself. > > (Hope that didn't confuse or cause unnecessary headaches...) > > Sara Not quite what we were discussing, but I think you may have given just enough clues that i can be of some help. Just for reference ~ which editor are you using? IDLE is both an editor and a python shell or interpreter. It is not the same thing as typing python.exe wherever you might be typing it. Typing Python into an editor should put the word "Python" into your currently open file. I don't believe that this is what you mean. Perhaps you are confusing what exactly is an editor? You use Windows you've mentioned before. So here's what you can do. Start -> Programs -> Python 2.5 -> Python (commandline) This is the python interpreter. As you might already know. And then this. Start -> Programs -> Python 2.5 -> IDLE (Python GUI) This is IDLE. As you probably know. Two windows should come up when you click IDLE. One is an editor. The other is the python shell, or interpreter. You can open .py files in IDLE by right clicking and selecting "Edit with IDLE". At any time that you wish to run a program that is open in the editor half of IDLE, hit F5 and the Python shell half of IDLE comes to the top and runs the program. If doing all that doesn't do what I expect it to do, or you have something else in mind, reply back. If it does, then great! Oh. And tell me which editor you are using which magically opens a python interpreter when you type Python into it. ;-) JS ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor