Page 1 of 1

Starting editor / compiler on the Pi

Posted: Mon Jul 09, 2012 12:49 pm
by LJHaddow
My questions (as usual, apologies if already addressed / answer obvious):
How to I open up and run an editor / compiler to get started with coding Python (or indeed any other programming language) on the Pi? Is it already supplied with the operating system? Are there others available elsewhere? Could/should I write code on another machine and export to an SD card, or is it best to do everything on the Pi?

My background:
User of both Macs and PCs - but in no way a "power user". Never even seen a computer with Linux on it before. Know a bit of C++ and Objective-C (in a very self-taught, casual, non-professional way).

Thanks!

Re: Starting editor / compiler on the Pi

Posted: Mon Jul 09, 2012 1:09 pm
by jamesh
Python is already installed. It's an interpreted language so you don't need a compile stage, and you can run it without an editor. There are lots of python tutorials on the web, and on the Python home page that should get you going.

Editor, from the command line, vim would be OK, or Nano, again, check google for instructions.

Re: Starting editor / compiler on the Pi

Posted: Mon Jul 09, 2012 1:33 pm
by LJHaddow
Thanks Jamesh.
So it runs a bit like BASIC did? But inside another application (e.g. Vim)?
I'll need to have a play around with it when I get home later. I hope you don't mind if I ask for more advice. I've just had a quick look at the Getting Started guide on python.org and none of it makes sense without the Pi in front of me!

Re: Starting editor / compiler on the Pi

Posted: Sun Jul 15, 2012 8:18 pm
by antiloquax
Hi,
Here's a page with some good tutorials for Python listed.

I also have a couple of blog posts that may help:
Team Python
100Mudcats

Re: Starting editor / compiler on the Pi

Posted: Mon Jul 16, 2012 8:35 am
by bredman
You will find instructions for absolute beginners in the MagPi magazine
www.themagpi.com

I think the June edition showed how to edit and run a Python program.