ipy_stock_completers.py
17 lines
| 527 B
| text/x-python
|
PythonLexer
vivainio
|
r589 | """ Install various IPython completers | ||
vivainio
|
r503 | |||
vivainio
|
r681 | IPython extension that installs completers related to core ipython behaviour. | ||
vivainio
|
r503 | |||
vivainio
|
r589 | The actual implementations are in Extensions/ipy_completers.py | ||
vivainio
|
r503 | |||
""" | ||||
import IPython.ipapi | ||||
ip = IPython.ipapi.get() | ||||
vivainio
|
r589 | from ipy_completers import * | ||
vivainio
|
r503 | |||
ip.set_hook('complete_command', module_completer, str_key = 'import') | ||||
ip.set_hook('complete_command', module_completer, str_key = 'from') | ||||
ip.set_hook('complete_command', runlistpy, str_key = '%run') | ||||
ip.set_hook('complete_command', cd_completer, str_key = '%cd') | ||||