Python Development with Eclipse and PyDev

This afternoon I was approached by a junior developer and asked me how I started my python apprenticeship. I told him take a look at my blog tonight I’ll show you the steps.

The Steps

1. Grab Eclipse from eclipse.org. By the time of this writing, I am using Luna.

2. Grab python from python.org. I am using 2.7.8 during this post.

3. Install additional software on eclipse.

– Go to Help > Install New Software. And on the work with field, add http://pydev.org/nightly. Why nightly? Because it is the nightly build and the nightly build contains the recent updates.

Installing_PyDev_on_Eclipse

– When asked if do you trust the certificate? Just check the box because you have no other choice anyway. =)

– Now we are all set. Let’s create a simple loop which prints out the content of a list.

theList = [1,1,2,3,5,8,13,21]

def firstLoop(theList):
    for item in theList:
        print item
    
firstLoop(theList)

 

4. Let’s run our first program and it should print out the content of the list as expected.

SampleProgram

 

So, your first program is running. Are you going to stop from here? I won’t.

If you disagree with what I posted, feel free to hit me up in a form of an email. Please visit my site www.francorobles.com if you need to know more about me. I will be blogging every night to share what I know.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: