24 lines
580 B
Markdown
24 lines
580 B
Markdown
# IPython
|
||
|
||
> 一个具有自动历史记录、动态对象 introspection、简化配置、命令补全、访问系统 shell 等功能的 Python 终端。
|
||
> 更多信息:<https://ipython.readthedocs.io>。
|
||
|
||
- 启动 REPL(交互式终端):
|
||
|
||
`ipython`
|
||
|
||
- 在运行 Python 脚本后进入交互式 IPython 会话:
|
||
|
||
`ipython -i {{script.py}}`
|
||
|
||
- 创建默认的 IPython 配置文件:
|
||
|
||
`ipython profile create`
|
||
|
||
- 打印默认 IPython 配置文件目录的路径:
|
||
|
||
`ipython locate profile`
|
||
|
||
- 清除 IPython 历史数据库,删除所有条目:
|
||
|
||
`ipython history clear` |