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.