Use Python to program happily in Ipython notebook

Source: Internet
Author: User

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

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.