Commit 3570ff73 authored by Ramiro Morales's avatar Ramiro Morales
Browse files

Fixed #17078 -- Made shell use std IPython startup.

This allows for a behavior more in line with what is expected by Ipython
users, e.g. the user namespace is initialized from config files, startup
files.

Thanks Benjamin Ragan-Kelley from the IPython dev team for the patch.
parent 9180146d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -19,8 +19,10 @@ class Command(NoArgsCommand):

    def ipython(self):
        try:
            from IPython import embed
            embed()
            from IPython.frontend.terminal.ipapp import TerminalIPythonApp
            app = TerminalIPythonApp.instance()
            app.initialize(argv=[])
            app.start()
        except ImportError:
            # IPython < 0.11
            # Explicitly pass an empty list as arguments, because otherwise