Jupyter (ipython notebook) Installation and getting started tutorial, jupyteripython
In the near future, you may need to draw some data presentation diagrams for your own data analysis or emergency defense PPT. In the past, you used excel to draw pictures, but there are some limitations in excel drawing, for example, if you want to draw a cumulative histogram, excel will be very troublesome, so we will introduce you to an interactive data analysis tool based on python, ipython notebook.
This article will introduce you to the tutorials on installing and using notebook from scratch. You can talk a lot about the topics that are not detailed.
This article assumes that everyone is a python "". This tutorial is intended for the Windows platform. You can refer to some chapters as needed.
Install python2.7
First download the corresponding python installation file from the python official website, and then follow the installation process
Be sure to select all for Installation
Python Testing
Open the cmd command line interface, enter python, and press enter to see a simple interactive interface.
Input print "hello world" to view the output of hello world.
Press Ctrl + Z and press enter to exit.
Pip Test
Input pip in cmd. The output similar to this shows that pip is correctly installed.
Install VC for Python
Without this, many data analysis packages cannot be installed, because these packages are written in C ++ at the underlying layer. You can download VC for Python from here.
Install the python library for common data analysis
pip install numpypip install pandaspip install matplotlibpip install statsmodels
Install ipython notebook
Pip install jupyter
Test ipython notebook
Enter ipython notebook in the command line to automatically jump to the browser. The browser is the directory where the command line is located by default.
Now, everything is ready and you can start to do what you want to do.
Easy to use
Create a folder named example, enter the folder in the browser (called jupyter), select the new button on the right, and select Python 2 from the drop-down list.
Then you can start writing python code.
Next we will start to try Data Analysis
Import common databases and configurations for data analysis