Install pyDev with eclipse

We cannot code all the thing in the python editor, which is in command prompt. To edit python code easily we have to use an IDE for development. In this tutorial, I will be using Eclipse with PyDev.

  •  After installing Eclipse, Goto Help >Eclipse marketplace
    edit-market-place-python
  • Now search for pyDev and install the software
    pydev-eclipse-marketplace-python
  •  Accept the License and Restart the eclipse.
  • We have to open PyDev perspective to edit python code, Window > Perspective > Open Perspective > Other and choose PyDev
    open-perspective-others-python
    open-pydev
  • Create first Project, File > New > PyDev Project
    pydev-first-project-python
  • When we use python for the first time, we have to set the interpreter, click to configure the interpreter.
    pydev-first-project
  • Click on Auto-config option, and then finish the creating project wizard.
    creating-pydev-package
  • Right click on the python project and Create new Pydev Module.
    creating-pydev-module
  • Give Module name and click on Finish
    craeting-third-python-module
  • Select the template as Empty and click on OK
    select-the template
  • After creating Module successfully, your project will look like
    successfully-creted-module
  • Now enter the command in the coding area and click on Run button 
    print('Hello chercher.tech')​
  • When we Run any module  for the first time, we have to choose how you want to run either Just python program or as UnitTest Program
    run-as
  • You can see the output in the console 
    third-module-output

Console on PyDev

Unlike other programming languages, Python provides live editor, which is you can control the browser entering command by command. 

I am not talking about debugging, Debugging is a process where you will checkpoint and run the complete program step by step to understand the flow and error

Python console gives the ability to run a live command, for Example, I have opened a browser and I Opened Google.com but I realize I want to open Bing.com, now I don't have to stop the program as I am in the live editor I just change the commands.

let us see how to open Live console :

1. Open Eclipse console.

2. On Right-hand corner, you can find an icon to like a rectangle with a + sign, click it.

3. Choose PyDev Console
            pydev-console-python

4.Select Console for current Editor
            console-for-current-editor

5. Now you have a live console and type the commands that you want to use.
           live-console-python

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions