bundles / IPython latest / IPython / terminal / embed / InteractiveShellEmbed / __call__
function
IPython.terminal.embed:InteractiveShellEmbed.__call__
Signature
def __call__(self, header = '', local_ns = None, module = None, dummy = None, stack_depth = 1, compile_flags = None, **kw)Summary
Activate the interactive interpreter.
Extended Summary
__call__(self,header='',local_ns=None,module=None,dummy=None) -> Start the interpreter shell with the given local and global namespaces, and optionally print a header string at startup.
The shell can be globally activated/deactivated using the dummy_mode attribute. This allows you to turn off a shell used for debugging globally.
However, each time you call the shell you can override the current state of dummy_mode with the optional keyword parameter 'dummy'. For example, if you set dummy mode on with IPShell.dummy_mode = True, you can still have a specific call work by making it as IPShell(dummy=False).
Aliases
IPython.terminal.embed.InteractiveShellEmbed.__call__