python的交互式shell-ipython体验

  ipython的python比较优秀的交互式shell,比python console功能更加强大更加的贴近开发及调试程序,也支持在linux下直接执行linux命令

00x-install

源码安装

https://github.com/ipython/ipython/releases

IPython versions and Python Support

IPython 7.0 requires Python version 3.5 and above.

IPython 6.x requires Python version 3.3 and above.

IPython 5.x LTS is the compatible release for Python 2.7. If you require Python 2 support, you must use IPython 5.x LTS. Please update your project configurations and requirements as necessary.

ipython-7.5.0.tar.gz     //本机测试的python3.6环境下的ipython

python3 setup.py install    //安装库文件到site-packages及scripts/ipython

pip安装

pip3 install ipython   //注意配置下pip国内源

 注意:通过yum/apt也是可以安装ipython

01x-experience

tab自动补全

ipython内置魔法函数

%lsmagic    //查看所有内置魔法函数    %alias?  //查看函数的帮忙文档

 应用例子

 

转载于:https://www.cnblogs.com/xiaochina/p/10993178.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值