Introduction to Anaconda

Source: Internet
Author: User

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

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.