Another development environment for Python the Spyder in--anaconda

Source: Internet
Author: User

The author Lucygill, reproduced please indicate the source (although I do not think there will be reproduced).


When I first started learning Python, I used its own idle (which I found in the Start menu after installing Python) and later found that you could edit Python after setting up the environment in eclipse. However, as a beginner, the most commonly used is idle, because eclipse runs too much memory, and I do not need to develop any projects. Then I heard that pycharm is good for editing Python code, but hasn't tried it yet.

When I installed Anaconda on the lab's computer today (I think it was the best option to install Python), I found that it came with a Python editor--spyder, so I was going to try it and it was pretty amazing.

As shown in 1, the Spyder can be found on the Start menu after installing Anaconda.



Figure 1 Location of the Spyder


Open the Spyder, which is like Figure 2:



Figure 2 The Spyder interface


Is there anything super familiar? Yes, it's like Matlab.

Then start exploring and find that the Spyder is really handy.

1. editor window: the left window. Can be used to write large pieces of code, and then like Matlab, with the above menu bar of the green button to run.

2. Python console/history log/ipython Console window: The lower-right corner of the window.

The Python Console/ipython console is the console, which is the command-line window for Python and Ipython, which allows you to enter code directly into the window and hit enter to execute the previous line. The difference between Python and Ipython can be referred to http://blog.sina.com.cn/s/blog_6fb8aa0d0101r5o1.html

In short, Ipython adds a number of features to the Python base.

History log is equivalent to the historical record, which records the code previously entered on the command line.

3. Variable Explorer/file explorer/help

Displays the existing variables, files, and help, respectively.


In addition, the Spyder has several additional skills:

1. Hold down the CTRL key and click a variable, and the cursor jumps to the place where the variable is defined.

2. In fact, it is Ipython function: Ipython console Enter a command, and then press the TAB key, you can auto-complete, 3 shows:



Figure 3 Auto-complete function of Ipython


Enter some commands and press the TAB key to jump out of several optional functions.

3. In fact, it is also a function of Ipython. Enter variable name +? A description of the variable is displayed. As shown in 4.



Figure 4 showing the variable description


Original address: 78068985

Another development environment for Python the Spyder in--anaconda

Related Article

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.