Get the global InteractiveShell instance. Returns None if no InteractiveShell instance is registered.
()
| 15 | |
| 16 | |
| 17 | def get_ipython(): |
| 18 | """Get the global InteractiveShell instance. |
| 19 | |
| 20 | Returns None if no InteractiveShell instance is registered. |
| 21 | """ |
| 22 | from IPython.core.interactiveshell import InteractiveShell |
| 23 | if InteractiveShell.initialized(): |
| 24 | return InteractiveShell.instance() |
no outgoing calls