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.
This commit is contained in:
Ramiro Morales 2012-12-31 19:40:02 -03:00
parent 9180146d21
commit 3570ff734e
1 changed files with 4 additions and 2 deletions

View File

@ -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