Installation and use of reptile --jupyter environment

Introduction of 1.jupyter

Jupyter Notebook is based on an application for interactive computing web page. It can be applied to the whole process of computing: developing, documenting, run the code and display the results.

What is Anaconda?

  • Integrated environment: Based on data analysis and machine learning development environment

jupyter: Super Terminal, it is a kind of Anaconda integrated environment provides a visual browser-based development tool

2.jupyter installation and use

First, we recommend pip to upgrade to the latest version:

  • pip install --upgrade pip

Installation Jupyter Notebook

  • pip install jupyter

Start jupyter

  • jupyter notebook

Page display terminal

The browser displays the page:

If you have any questions jupyter command:

  • jupyter notebook -help

Specify the port to start:

  • jupyter notebook

Start the server but can not open the browser:

  • jupyter notebook --no-browser

3.jupyter shortcuts

General instructions

  1. Inserted upward into a cell: a
  2. Inserting a downwardly cell: b
  3. Delete cell: x
  4. The code is switched to the markdown: m
  5. Switched to the markdown code: y
  6. Run cell: shift + enter
  7. Our help documentation: shift + tab
  8. Automatic Tip: tab

Magic send instructions

  1. Run external python source file:% run xxx.py

  2. Calculated statement run time:% time statement

  3. The average running time of calculation statement:% timeit statement

  4. The average running time test multiple lines of code:

    %% timeit

    statement1

    statement2

    statement3

Guess you like

Origin www.cnblogs.com/guoruijie/p/11453635.html