Ipython is the interactive shell tool for Python

Source: Internet
Author: User

Ipython
is a Python interactive shell tool that works better than the default Python shell tool. Support changed auto-completion, auto indent, built in a lot of functions and functions
Start: The tool can be started with cmd

Auto Completion:

In []: Import OS

In []: OS.W #直接回车, will automatically show all the methods under the module, if we forget the method of the OS module, the method can not be used in this way
Os.waitpid Os.walk Os.write

%ENV Display Environment variables

%hist or%history display history

Who: View variables

Module? : View Module Help documentation

who int: View numeric variables

Who_ls: Viewing the list type variable

Reset: Empty all variables

%run < file absolute path;: Run a Python script, such as:%run C:\2.py

Common shortcut keys:

Ctrl+u Delete entire line (cursor at last)

Ctrl+k Delete entire line (cursor at top)

CTRL + a jumps to the first line

Ctrl+e jump to the last

Apple key +k Empty screen

Ctrl+l emptying the screen

CTRL+R Reverse Search History

CTRL + C abort Run program

  • %pwd: Displays the current working directory.

  • %CD: Switch working directory

  • ls: View all files in this directory

Ipython is the interactive shell tool for Python

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.