First, after the installation of Anaconda to update.
Description: For operations in a Windows environment, refer to the specific books in the Linux environment.
1. Go to cmd command line
Perform
1 Conda Update Conda 3 Conda Update Anaconda 4 Conda Install MKL
1 Conda install pylint html5lib Seaborn
Finally, install some anaconda tools.
Second, jupyter some convenient command
1, CD directory, change to the destination directory
2. Edit filename -launch an editor to edit filename
3, ls or ls pattern -List The contents of a directory
4. Run Filename-run the Python file filename
5. Timeit-time the execution of a piece of code or function
6, the special variable _ contains the last result of the console, and so the most recent result can be
Saved to a new variable using the syntax x = _.
Iii. Configuration Files
1. Generate Configuration Folder
Configure Ipython First, configuration file in (Windows) ~/.ipython/directory
Open terminal and enter the following command
Ipython Profile Create Econometrics
will produce a profile_econometrics directory, and a file
It is important that the ipython_config.py file is IPython setting for all IPython sessions.
2. Modify the configuration file
Open a. ipython_config.py file to modify
- c.interactiveshellapp.exec_lines=["from __future__ Import Division",
"Import OS",
"Os.chdir (' d:\\chengxu\\ml ')"]
- c.interactiveshellapp.pylab= "Qt4"
3. Start running for testing, two methods
- (1) directly in the command line input: Ipython--profile=econometrics
- (2) Enter the following command in the text editor: cmd "/C CD scripts\ && start" "Ipython.exe"--profile=econometrics "save it as Ipython-plain.bat, In the ANACONDA2 installation directory, you can right-click to send it to the desktop shortcut if you want it to be convenient. You can click it directly later.
>>> x = Randn (100,100)>>> y = mean (x,0)>>> plot (y)Import SciPy as SP
If everything is OK, it will appear as shown:
5, Configuration Ipython-notebook
Enter the following command in the text editor:
CMD "/C CD Scripts && start" "Ipython.exe" notebook--matplotlib= ' inline '--notebook-dir=u ' d:\\chengxu\\ml\\ ' "
Save As Ipython-notebook.bat and put it in the Anaconda2 installation directory
Introduction to Anaconda