icecube.steamshovel.embed.console_widget module

icecube.steamshovel.embed.console_widget.embed_shell_widget(parent_ptr)

Create a RichIPythonWidget as a child of the given parent QWidget.

Parent is assumed to be an integer and is wrapped into a QWidget using sip.

This function may only be called when init_embedded_python() previously returned True. It may throw an ImportError if sip or PyQt5 is missing. If it successfully returns, the widget was successfully embedded.

icecube.steamshovel.embed.console_widget.execScript(path)

Execute the python script at the given path as if the user had run execfile() on it

The mechanism of doing this varies by whether the widget or the threaded console is active.

icecube.steamshovel.embed.console_widget.init_embedded_kernel()

Attempt to initialize an in-process ipython kernel

Return True on success. If the kernel could not be created (e.g. if IPython is missing, or is a pre-1.0 version), return False.