Install the IPython configuration python development environment tutorial under Linux

  • 2020-05-10 23:19:39
  • OfStack

1. IPython profile

IPython is an interactive shell that is easier to use than the default terminal, supports automatic indentation, and has many useful features and functions built in. It can be used on any operating system.

2. Installation method

1. Online installation of pip

pip install ipython
pip install "ipython [notebook]"

2. Download and install

You can go to GitHub to download the installation package, switch to the directory and run the following script

Python setup.py install

3. Simple use

Open the Linux terminal and type on the command line

root@Linux:/# ipython
This brings us to ipython's interactive shell and displays some information about ipython. You can enter the python code at In [1]:


Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
Type  " copyright " ,  " credits "  or  " license "  for more information. 
IPython 4.0.0  �  An enhanced Interactive Python. 
? -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help -> Python's own help system. 
object? -> Details about  ' object', use  ' object??' for extra details. 
In [1]:  (enter code here) 

For example, print "hello ipython" and enter the following code


In [1]: print ( ' hello ipython') 
hello ipython 
In [2]:

If you want to configure the development environment under windows, you need to install Anaconda, which is a kind of installation management program. It can be used to easily complete the upgrade operation of Python, and it also comes with many Python libraries.

For more information about the python installation tutorial, please refer to the python installation tutorial for various versions.

For more highlights, click on the python programming must-read list

The above is the entire content of this article, I hope to help you with your study.


Related articles: