Installation of ipython
ipython can be used directlypip install ipython
Installation, if the installation fails follow the steps below to install manually
Required documents to download.
Link: /s/1dE756OL Password: rlzh
ipython is an interactive shell for python that is much more powerful than the defaultpython shell
Much better, supports variable auto-completion, auto-indentation, and support for thebash shell
command, with many very useful features and functions built in.
1. Install ez_setup.py in cmd with the command:python ez_setup.py
2, unzip ipython, then install ipython in cmd, the command is:python install
3. Set the environment variables for ipython. The ipython executable is in the scripts folder under the python installation folder.
4. After setting it up, type ipython in cmd to use it.
Use of iptyhon
1. Command Completion
When entering an expression in the shell, any variable (object, function, etc.) in the current command control that matches the entered string will be found as soon as the Tab key is pressed.
2. Object introspection
Adding a question mark (?) in front of or after a variable It is then possible to display some generalized information about the object. This is called object introspection.
If the object is a function or instance method, its docstring is also realistically out.
Using the ??? will also show the source code of the function.
Some strings with a wildcard (*) will show all the names that match that wildcard expression.
Common Shortcut Keys
Ctrl-P or Up Arrow key Backward search command history for commands that begin with the currently typed text
Ctrl-N or Down Arrow key Forward search command history for commands that begin with the currently typed text
Ctrl-R Reverse history search reading by line (partial matches)
Ctrl-Shift-v Paste Text from Clipboard
Ctrl-C Aborts the currently executing code.
Ctrl-A Moves the cursor to the beginning of the line
Ctrl-E Move cursor to end of line
Ctrl-K Delete text from the beginning of the cursor to the end of the line
Ctrl-U clears all text on the current line.
Ctrl-F Moves the cursor forward one character
Ctrl-b Moves 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 on your learning or work can bring some help, if there are questions you can leave a message to exchange.