数据科学非常简单(DATA SCIENCE MADE SIMPLE)
Jupyter Notebook is an interactive compiler that allows users to create and share documents that contain live code, equations, visualizations, and narrative text. It is a spin-off project from IPython. Almost all of us just know Jupyter Notebook only can compile Python code. Surprise, Jupyter Notebook also can compile Julia, R, Haskell, and Ruby.
Jupyter Notebook是一个交互式编译器,允许用户创建和共享包含实时代码,方程式,可视化效果和叙述文本的文档。 这是IPython的一个衍生项目。 几乎我们所有人都知道Jupyter Notebook仅可以编译Python代码。 令人惊讶的是,Jupyter Notebook还可以编译Julia,R,Haskell和Ruby。
The simplest way to install Jupyter Notebook is by installing via Anaconda. Anaconda gives you a completed package for your Python or R programming. To open it, you just find Jupyter Notebook in your application list. You can also open it via Command Prompt by typing jupyter notebook and press Enter. In Linux, you can install it via pip. You can do the same procedures in Windows to open it, but just type it in Terminal.
安装Jupyter Notebook的最简单方法是通过Anaconda安装。 Anaconda为您提供了用于Python或R编程的完整软件包。 要打开它,只需在应用程序列表中找到Jupyter Notebook。 您也可以通过键入jupyter notebook并按Enter键,通过命令提示符将其打开。 在Linux中,您可以通过pip安装它。 您可以在Windows中执行相同的步骤来打开它,而只需在终端中键入它即可。
After you open it, you will be shown a display like this.
打开它后,将显示如下显示。
At least, there are 4 types of cell you can create, they are
至少可以创建4种类型的单元,它们是
Code, you can run a code in this type of cell.
代码,您可以在这种类型的单元格中运行代码。
Markdown, you can create an HTML ‘code’ in this cell.
Markdown,您可以在此单元格中创建HTML“代码”。
Raw NBConvert, this kind of cell is providing you a raw text.
Raw NBConvert,这种单元格为您提供了原始文本。
Heading, you can create a heading for your interactive file.
标题,您可以为交互式文件创建一个标题。
This is the example of Code cell type that run of R-code and Python-code. The indicator is shown at the top right corner. You can see symbol of R and Python on it.
这是运行R代码和Python代码的代码单元格类型的示例。 该指示器显示在右上角。 您可以在上面看到R和Python的符号。