How to Develop Python labels in Eclipse

Source: Internet
Author: User

The following articles will introduce you to Eclipse, the standard perspective of Eclipse, and the steps involved in the development of Python labels in Eclipse, the following is the main introduction of the article, and I hope you will gain some benefits.

Python labels for Eclipse development: pydev python eclipse source code View

Eclipse Overview

Eclipse is an Integrated Java Development Environment developed by IBM and its source code is open. It is the foundation of the IBM commercial software WebSphere Application Development Environment and other tools. The Eclipse development community is very active. They not only develop Eclipse, but also develop a large number of plug-ins for Eclipse. For websites of Eclispe and Eclipse plug-ins, see the links in the references section.

  • Why mod_python outperforms traditional CGI in terms of performance
  • Python unicode ascii encoding in windows
  • The actual operations of the macro programming language in the Python Function
  • Introduction to four common tools in Python
  • Simulate JavaScript encryption requirements for websites using Python

Although Eclipse is traditionally a Java development tool, the existence of some plug-ins makes it possible to develop programs in other languages in Eclipse, such as C/C ++, Python, and Perl. In Eclipse, the source code is organized into the project. Projects can be loaded, detached, and imported. Eclipse user interface structure is divided into View) and Editor ).

Examples of views and editors include: Source Code outline view, Java source code editor, Python source code editor, and file system navigation view. The most important implicit concept in the Eclipse user interface is the perspective ). A view is a set of views that are usually used together when a type of activity is executed.

Standard perspectives in Eclipse include: Debug, Java Browsing, Java, Java Type Hierarchy, Plug-in Development, CVS Repository refreshing ing, Resource, and Install/Update. Currently, there is no separate Python perspective. During Python development, I usually use the Resource and Debug perspectives.

Install PyDev

First, download Eclipse from the Eclipse Web site, see the link in the references section), and install Eclipse based on your platform according to the following installation guide:

The update mechanism of Eclipse makes it easier to install the PyDev plug-in. Select Help> Software Updates> Update Manager from Eclipse to start the Install/Update perspective. In the Feature Updates view in the lower-left corner, add the PyDev plug-in Update Site as the new Site Bookmark to the "Sites to Visit" folder.

Eclipse's PyDev Update site URL is http://pydev.sf.net/updates /. The Feature Updates editor should now display the "PyDev" Feature. In the Feature Updates Editor, expand PyDev> Other and select the PyDev Feature shown in it as at least 0.4.1 ). Then select "Install Now" to Install the feature. Eclipse will download the PyDev plug-in and install it in Eclipse.

Import sample project

To access the sample code used in this project, you can first download the zip file, see the references section), and expand the zip file in the file system, import the project to Eclipse. To Import a Project, first switch to the Resource perspective, select File> Import, then select "Existing Project into Workspace", and then select the location where you want to expand the zip File.

In this case, the feedParserTest project should appear in the Navigator view. The sample project already contains the Fead Parser general resource Parsing Library, which is published using the Python open source code license protocol. For links to the Feed Parser project Web site, see references.

PyDev roaming

Now I want to learn how to understand the features of PyDev through imported projects. PyDev is in the development process, but it is already a very efficient Python development environment. Current PyDev mainly includes the following features:
Python editor that includes the Python syntax highlighting feature.

Perform Python syntax analysis and highlight errors in the Python editor and Tasks view. Option that converts a tab to a space. The Outline View displays imported libraries, classes, and functions. The Python stack trace information in the terminal view can be hyperlinked to the source code.

Source code internal hyperlinks; imports and function calls within the same module can be navigated through hyperlinks. The ability to run Python scripts from the Navigator view. The debugger supports breakpoint, single-step code execution, and variable value display.

The above content is an introduction to the actual operation steps of Python label: pydev python Eclipse source code for eclipse development.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.