Skip to content

Missing "if __name__ == '__main__':" check in /usr/bin/ipython #4698

@ncoghlan

Description

@ncoghlan

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__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions