IPython
跳转到导航
跳转到搜索
功能和色彩丰富的 Python 交互式命令行,支持终端、GUI 和网页。
禁用退出确认
ipython profile create
然后编辑配置文件~/.ipython/profile_default/ipython_config.py,添加一行:
c.TerminalInteractiveShell.confirm_exit = False
粘贴代码
因为 IPython 会进行自动缩进,所以粘贴代码颇费周折。
从 CLIPBOARD selection 粘贴(自动):
%paste
从其它来源(如 X PRIMARY selection)手动粘贴[2]
%cpaste
绕过安装直接调用
>>>> import IPython
>>>> IPython.start_ipython()