01, why Anaconda?
Python's data processing capabilities rely primarily on the Numpy,scipy,matplotlib,pandas 4 libraries, where NumPy provides the functionality of matrix operations, and SciPy adds a number of scientific computational library functions based on NumPy. These two libraries enable Python to have the same data processing power as MATLAB. The Matplotlib library provides drawings that enable visualization of data, and pandas is a numpy-based tool that provides the tools you need to efficiently manipulate large datasets. Each of these four libraries requires a separate installation, and Python does not have these libraries on its own.
The General Python data Analysis Tutorial does not run code directly in the Python shell, but instead chooses Ipython,ipython as a python interactive shell that works much better than a traditional Python shell, supports variable auto-completion, automatically indents, The Bash Shell command is supported with many useful functions and functions built into it. In a word, Ipython is all kinds of convenience, all kinds of good!
and Ipyhon installation is more cumbersome and complex, the general people are difficult to install success, fortunately, the great God will be required for scientific computing modules and Ipython packaging for users to use, Anaconda is one of the better one. In short, installing the anaconda, you install the Python+numpy+scipy+matplotlib+ipython+ipython Notebook. So, we just install anaconda on it!
Anaconda:http://continuum.io/downloads.
02. Interactive Programming Tool IPython Notebook
IPython Notebook is an interactive computing platform and a notebook that records the computational process. It uses the browser as an interface to send requests to the Ipython server in the background and display the results. Use the unit (cell) to store various information in the browser's interface. There are several types of cells, often using markdown cells that represent formatted text, and code units that represent codes. Each code unit has an output area, enter the code in the Codes unit, press Shift-enter to run the code, and the value of the last expression in the code will be displayed in the output area. You can also use the Print statement to display information in the output area in your code. You can also add formatted text information (such as notes, notes, and so on) directly using HTML and JavaScript in the Markdown cell.
03. Happily programmed in Ipython notebook
Take windows as an example of how to run Ipython Notebook (similar to Linux and Mac):
If it is Win XP, click Start and Run, enter "Ipython notebook";
For Win7 or WIN10, press "Win" on the keyboard (the Windows logo next to the SPACEBAR) and the letter "R" key, and enter "Ipython notebook".
After entering the carriage, the browser will launch into a similar http://localhost:8889/tree?token=xxx address.
Click on the New->python 3 menu in the upper right corner to enter the interactive programming environment and start the fun Python programming journey!
The next lesson will have a basic introduction to Python grammar, please look forward to!
Use Python to program happily in Ipython notebook