2019-12-08 15:32:58 +00:00
|
|
|
# IPython
|
|
|
|
|
|
|
|
> A Python shell with automatic history, dynamic object introspection, easier configuration, command completion, access to the system shell and more.
|
2021-09-23 20:57:27 +01:00
|
|
|
> More information: <https://ipython.readthedocs.io>.
|
2019-12-08 15:32:58 +00:00
|
|
|
|
2021-09-12 15:03:27 +01:00
|
|
|
- Start a REPL (interactive shell):
|
2019-12-08 15:32:58 +00:00
|
|
|
|
|
|
|
`ipython`
|
|
|
|
|
|
|
|
- Enter an interactive IPython session after running a Python script:
|
|
|
|
|
|
|
|
`ipython -i {{script.py}}`
|
|
|
|
|
|
|
|
- Create default IPython profile:
|
|
|
|
|
|
|
|
`ipython profile create`
|
|
|
|
|
|
|
|
- Print the path to the directory for the default IPython profile:
|
|
|
|
|
|
|
|
`ipython locate profile`
|
|
|
|
|
|
|
|
- Clear the IPython history database, deleting all entries:
|
|
|
|
|
|
|
|
`ipython history clear`
|