Windows Ipython installation and use of the detailed _python

Source: Internet
Author: User
Tags clear screen instance method

Installation of Ipython

Ipython can be used directly with pip install ipython the installation if installation fails as follows: Manually install

Download the required files:

Link: Http://pan.baidu.com/s/1dE756OL Password: rlzh

Ipython is a python interactive shell that works much better than the default python shell , supports variable automatic completion, automatic indentation, support bash shell commands, and built-in many useful functions and functions.


1, the installation of ez_setup.py in CMD, the order is:python ez_setup.py

2, decompression Ipython, and then install Ipython in cmd, the command is:python setupegg.py install

3. Set Ipython environment variables, Ipython executable files in the Scripts folder under the Python installation folder


4. After set up in cmd, enter Ipython can be used


The use of Iptyhon

1. Complete the Order

When you enter an expression in the shell, just press the TAB key, and any variables (objects, functions, etc.) that match the input string in the current command control are found.


2, Object introspection

Add a question mark (?) to the front or back of the variable. You can display some general information about the object. This is called introspection of the object.

If the object is a function or instance method, its docstring will also be realistic.

Use?? The source code for the function is also displayed.

Some strings are matched with wildcard characters (*) to display all the names that match the wildcard expression.

Common shortcut keys

Ctrl-p or up ARROW keys a command that begins with the text that is currently entered in the Search command history

Ctrl-n or DOWN ARROW keys forward to a command in Search command history that starts with the text you currently enter

Ctrl-r Reverse History Search (partial match) read by row

Ctrl-shift-v paste text from the Clipboard

Ctrl-c abort the code that is currently executing

CTRL-A moves the cursor to the beginning of the line

CTRL-E move the cursor to the end of the line

Ctrl-k Delete text from the beginning of the cursor to the end of the line

Ctrl-u clears all text from the current line 12

CTRL-F move the cursor forward one character

Ctrl-b move the cursor back one character

Ctrl-l Clear Screen

Summarize

The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange.

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.