(shell)
| 11 | (Token.Prompt, '>>>')] |
| 12 | |
| 13 | def load_ipython_extension(shell): |
| 14 | new_prompts = MyPrompt(shell) |
| 15 | new_prompts.old_prompts = shell.prompts |
| 16 | shell.prompts = new_prompts |
| 17 | |
| 18 | def unload_ipython_extension(shell): |
| 19 | if not hasattr(shell.prompts, 'old_prompts'): |