在ubuntu中使用ipython
Posted guoendlesslove
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在ubuntu中使用ipython相关的知识,希望对你有一定的参考价值。
python自带的shell实在是不怎么好用
大家可以用一下ipython这个软件,它可以自动缩进,补齐,语法高亮等
安装办法:
sudo apt install ipython #这个是安装2.7的python
sudo apt install ipython3 #这个是安装3.6.9的python(应该是ipython能提供的最新的版本了,虽然现在3.7都已经有了)
gyf@ubuntu:~/Downloads$ ipython3
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
Type "copyright", "credits" or "license" for more information.
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython‘s features.
%quickref -> Quick reference.
help -> Python‘s own help system.
object? -> Details about ‘object‘, use ‘object??‘ for extra details.
? -> Introduction and overview of IPython‘s features.
%quickref -> Quick reference.
help -> Python‘s own help system.
object? -> Details about ‘object‘, use ‘object??‘ for extra details.
In [1]: print("Hello ,Ipython")
Hello ,Ipython
Hello ,Ipython
In [2]:
以上是关于在ubuntu中使用ipython的主要内容,如果未能解决你的问题,请参考以下文章