When executed, the top level ipython script always launches a new instance, even if the module is not being executed as __main__.
This is currently being worked around in the standard library (by special casing IPython), but the correct fix is for IPython to not launch a new instance when the module is being run as anything other than __main__.
When executed, the top level ipython script always launches a new instance, even if the module is not being executed as
__main__.This is currently being worked around in the standard library (by special casing IPython), but the correct fix is for IPython to not launch a new instance when the module is being run as anything other than
__main__.