From 66eefcd4e5d0af0104207d5c249b8f7f77fa65cf 2011-05-29 05:48:46
From: muzuiget <muzuiget@gmail.com>
Date: 2011-05-29 05:48:46
Subject: [PATCH] embed() doesn't load default config

Fix issue 458

---

diff --git a/IPython/frontend/terminal/embed.py b/IPython/frontend/terminal/embed.py
index 81674bd..2c33e4d 100755
--- a/IPython/frontend/terminal/embed.py
+++ b/IPython/frontend/terminal/embed.py
@@ -240,6 +240,7 @@ def embed(**kwargs):
     if config is None:
         config = load_default_config()
         config.InteractiveShellEmbed = config.TerminalInteractiveShell
+        kwargs['config'] = config
     global _embedded_shell
     if _embedded_shell is None:
         _embedded_shell = InteractiveShellEmbed(**kwargs)