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