IPython: An interactive computing and development environment

Source: Internet
Author: User
Tags clear screen python script

A keyboard shortcut key

-Ctrl-p or UP ARROW key to search command history with the currently entered text beginning with the command-ctrl-n or DOWN ARROW key forward to search command history with the currently entered text beginning with the command-ctrl-r read by row reverse history search (partial match)-ctrl-shift-v Paste text from clipboard-Ctrl-c abort the code that is currently executing-ctrl-a moves the cursor to the beginning of the line-CTRL-E moves the cursor to the end of the row-ctrl-k deletes the text from the cursor to the end of the line-ctrl-u clears all text from the current line 12-c TRL-F moves the cursor forward one character-ctrl-b moves the cursor backwards by one character-ctrl-l clear screen

Two Magic commands

%quickref Display Ipython Quick reference%magic Show detailed documentation of all Magic commands%debug Enter the interactive debugger%hist print commands from the bottom of the latest exception trace history%pdb automatically enters the debugger after an exception occurs%paste Execute Python code in Clipboard%cpaste open a special prompt to manually paste the python code you want to execute%reset delete all variables/names in the interactive namespace%page OBJECT is printed out via the pager object% Run script.py executes a python script file in Ipython%prun statement cprofile through statement and prints the output of the parser%time statement The execution time of the report statement%timeit statement multiple executions statement to calculate the average time to perform the ensemble. Useful for code that executes very little time%who,%who_ls,%whos displays variables defined in the interactive namespace, variable information level/redundancy%xdel variable Delete variable, And tries to clear all references to its objects in Ipython

IPython: An interactive computing and development environment

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.