The Sage Input Hook¶
This lets us perform actions while IPython is sitting at the terminal input prompt. We use it to reload attached files if they have changed.
- sage.repl.inputhook.install()¶
Install the Sage input hook
EXAMPLES:
sage: from sage.repl.inputhook import install sage: install()
- sage.repl.inputhook.sage_inputhook(context)¶
- sage.repl.inputhook.uninstall()¶
Uninstall the Sage input hook
EXAMPLES:
sage: from sage.repl.inputhook import uninstall sage: uninstall()