IPython、Python、Jupyter Notebook、Kernel 之间的关系

Jupyter Notebook 可以理解为一种专门针对“代码展示”进行了优化的富文本编辑器. 其本质上仍然是一个文本编辑器, 是用来编写文档, 并向他人展示的. 只不过, 其特殊之处在于可以运行文档中包含的代码, 这就极大的拓宽了文本编辑器的使用范畴. 使得原来干巴巴的代码陈列, 变成了一种可随时运行代码的交互式体验. 甚至, 当代码运行的结果是图表时, 也能反过来丰富文档的内容, 构成一个闭环.

初接触这一产品时, 不仅被其背后的设计思想所触动, 更想去探究一下实现原理. 初步 Google 了一番, 发现了很多与 Jupyter Notebook 相关联的关键词, 他们之间的关系也比较复杂和混乱. 这篇帖子主要目的就是理清他们间的关系, 并使用这些关键词大致介绍 Jupyter Notebook 的原理和架构.

首先, 简而言之:

  • IPython 是一个基于 REPL (交互式解释器) 思想的软件
  • Python
  • Jupyter Notebook
  • Kernel

Jupyter and the future of IPython

IPython is a growing project, with increasingly language-agnostic components. IPython 3.x was the last monolithic release of IPython, containing the notebook server, qtconsole, etc. As of IPython 4.0, the language-agnostic parts of the project: the notebook format, message protocol, qtconsole, notebook web application, etc. have moved to new projects under the name Jupyter. IPython itself is focused on interactive Python, part of which is providing a Python kernel for Jupyter.

 

(未完待续...)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值