call load_default_config when starting ipython shell. this time off next branch like readme informs

This commit is contained in:
barberj
2012-04-20 20:17:38 -04:00
parent 03588db454
commit 8bbfc3fbce
2 changed files with 7 additions and 1 deletions

View File

@@ -10,3 +10,4 @@ Jeremy Jones
Benjamin W. Smith
Pete Chudykowski
Mike Perez
Justin Barber

View File

@@ -51,7 +51,12 @@ class IPythonShell(object):
from IPython.frontend.terminal.embed import (
InteractiveShellEmbed
)
shell = InteractiveShellEmbed(banner2=banner)
# try and load their default profile
from IPython.frontend.terminal.ipapp import (
load_default_config
)
config = load_default_config()
shell = InteractiveShellEmbed(config=config, banner2=banner)
shell(local_ns=ns)
except ImportError:
# Support for the IPython <= 0.10 shell API