Introduction
The notebook extends the console-based approach to interactive computing in a qualitatively new direction, providing a web-based application suitable for capturing the whole computation process: developing, documenting, and executing code, as well as communicating the results. The Jupyter notebook combines two components:
A web application: a browser-based tool for interactive authoring of documents which combine explanatory text, mathematics, computations and their rich media output.
Notebook documents: a representation of all content visible in the web application, including inputs and outputs of the computations, explanatory text, mathematics, images, and rich media representations of objects.
这是官网上对于 Jupyter Notebookde的介绍。
大概意思是说:基于浏览器的工具,用于交互式创作文档,可以用于计算、解释文本、数学、图像和对象的富媒体表示的输入和输出。
特点
1、在浏览器中编辑代码,自动语法高亮,缩进,和标签完成/自省。
2、能够从浏览器执行代码,并将计算结果附加到生成它们的代码。
3、使用HTML、LaTeX、PNG、SVG等富媒体表示来显示计算结果。例如,由matplotlib库呈现的发布质量数据可以内联包含。
4、使用Markdown标记语言(可以为代码提供注释)在浏览器中编辑富文本,这不仅限于纯文本。
5、能够使用LaTeX轻松地在markdown单元格中包含数学符号,并由MathJax本地呈现。
主面板(Notebook Dashboard)
打开Notebook,可以看到主面板。在菜单栏中有Files(文件)、Running(运行)、Clusters(集群)。
Files 基本上列出了所有的文件,
Running 显示你当前已经打开的终端和Notebooks,
Clusters 由 IPython parallel 包提供,用于并行计算。
新建Python文件
参考