Canopy Editor Simple tutorial

Source: Internet
Author: User
Tags comments
Canopy Editor Simple tutorial liulifu/translation

1. Panel description


1. File Explorer panel: Displays one or more directories and any recently opened files. Double-click the file to open it in the Code Editor.
2. Code Editor: An additional feature of a common text editor is designed to edit Python code.
3. Python pane: Integrates a ipython (interactive python) hint that allows you to quickly test your code, experiment with ideas, and run the code directly from the editor.
4. Editor status bar: Displays information about the files currently displayed in the Code Editor: Rows and Columns (1 and 22, respectively, above), file type and file path and name.
2. Syntax check for Python files, the editor often runs the Pyflakes check daemon, marking the syntax error/warning RED/yellow wavy underline.
A small one. The status bar icon displays the total number of errors and warnings in the current file. If you click on this icon, you will be able to toggle the error description of each affected row right.

3. Grammar completion when you type the code, you can use the TAB key to complete the name after the cursor. If there is more than one possible complement, a small portion of the widget will pop up and let you choose a finish. The tab completes the import work as follows:
From numpy Import lin< press TAB >
4. Syntax Tips for example:

[].pop ()

To see the syntax of the pop, move the cursor inside the parentheses behind the pop. The position usage of the following three tab keys is OK, but note that the brackets () must have, cannot write only half the parentheses, and if you fill out the arguments in parentheses, then this hint will not be there. Linspace<tab> () # or Linspace (<TAB>) # or Linspace () <TAB>

5. Go To Definition
You can jump to the definition of the cursor, using CTRL + J (Apple cmd + j) For example: you import namedtuple

From collections Import namedtuple< Ctrl + J> jump directly to Namedtuple collections script opens on collections
Variables can also be used to jump to the defined place
6. Note
Comments and Uncomment blocks
(1) Select block to select the text block using the SHIFT + direction key or mouse. (2) Comment block then use the "comment column" command in the Edit menu (shortcut key CTRL +/; CMD's +/Mac OS x) to post comments, or to cancel the selection. If you want a simple annotation/uncomment the current line, there is no need to select a block of text.
7. Adjust Indent
Indent using tab, the effect is to the right and left is shift+ TAB
8. File browser in the view midpoint of the file browser (browser) By default will see the current user's folder and a "recent folder", in the current User folder, right-click add top-level path on the hard drive to select your directory, and then this directory is in the file browser

9. Ipython's configuration file
ipython_config.py,ipython_qtconsole_config.py and ipython_notebook_config.py

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.