Home  >  Article  >  Backend Development  >  IPython Notebook installation and usage guide

IPython Notebook installation and usage guide

零到壹度
零到壹度Original
2018-04-04 14:16:3721119browse


This article mainly introduces the installation and usage guide of IPython Notebook. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor to take a look

  1. Install IPython Notebook

I am using anaconda3, so it comes with interactive ipython. If you are not using Anaconda, you can run it through the command:

  1. pip install ipython

##2. IPython Notebook

Use win+R to open the run window and enter ipython notebook. The following results are displayed at the end of the window:


Indicates that ipython notebook is installed correctly. This command starts a Web service in the local default 8888 window. You can see that the browser is automatically opened and jumps to:

http://localhost:8888/tree#, and the following interface is displayed:


At this point you can create a new NoteBook through New in the upper right corner IPython Notebook installation and usage guideYou can choose code mode and text editing mode when editing Notebook. You can also export files in various formats, which is very convenient. . .

3. Shortcut operations

You can use it in an input box, that is, Cell The Enter key represents a line break, that is, multiple statements can be entered in one Cell.

Commands in a Cell can be run in two ways:

  1. <span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 0); font-size: 14px; font-family: 微软雅黑, " microsoft yahei>Shift + Enter</span>All code in the cells will be run in the current IPython interactive namespace, and the results will be immediate The output area below the input box is displayed, and a new input box appears.

  2. <span style="color: rgb(0, 0, 0); font-size: 14px; font-family: 微软雅黑, " microsoft yahei>Ctrl + Enter</span>The key combination will only display the running results and not create a new input box

Related recommendations:

ipython notebook details Introduction

Ipython notebook installation and use

Usage of IPython Notebook

The above is the detailed content of IPython Notebook installation and usage guide. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn