Python之IPython

越来越懒了!

做Android / iOS app几个月,慢慢开始总结前段时间的学习开发经历。

业余居然把Python的丢了,好久没用,先总结一下知识点:



然后,谈谈ipython这个工具:

  1. all-in-one
  2. terminal
  3. qtconsole
  4. notebook
  5. nbconvert
先简介,如ipython.org上介绍的那样,
" IPython provides a rich architecture for interactive computing",
即ipython可以和你的python代码做交互,无论是直接在terminal上写还是写到源文件中,总之,较之Python默认的terminal强大许多啊。

1. all-in-one
安装,这里介绍Windows下的安装,all-in-one的方式最简单,装好后什么基本什么都有了,如果喜欢自己一点一点去pip或者easy_install安装package也可以,看自己喜好了。

2. terminal -- highlight color, tab补全
ipython


3. qtconsole  -- terminal的增强版
ipython qtconsole --colors=linux --matplotlib=inline


4. notebook --  A browser-based  notebook  with support for code, text, mathematical expressions, inline plots and other rich media.
它使用Gunicorn在本地建了一个web server,可以写python,执行python,用markdown写注释,直接插入富媒体。






5. nbconvert
目前notebook可以将文件导出为.py和.ipynb的文本文件,以便进行版本管理。
可以使用nbconvert将.ipynb转换为pdf, html, markdown,latex, png, svg等等格式来进行保存,不过,后面ipython也会支持直接从notebook导出为这些格式的文件。


参考:
ipython.org

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值