From 8bbfc3fbce47765b319ee68fca898446ba370a26 Mon Sep 17 00:00:00 2001 From: barberj Date: Fri, 20 Apr 2012 20:17:38 -0400 Subject: [PATCH] call load_default_config when starting ipython shell. this time off next branch like readme informs --- AUTHORS | 1 + pecan/commands/shell.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 2bd4c5a..2f41476 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,3 +10,4 @@ Jeremy Jones Benjamin W. Smith Pete Chudykowski Mike Perez +Justin Barber diff --git a/pecan/commands/shell.py b/pecan/commands/shell.py index 49a6ef3..24aba10 100644 --- a/pecan/commands/shell.py +++ b/pecan/commands/shell.py @@ -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