From 9a803291413128977ba182d8b40e4106e34956b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Feb 2014 17:04:41 +0530 Subject: [PATCH] Fix ipython({...}) not applying specified user namespace --- src/calibre/utils/ipython.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/ipython.py b/src/calibre/utils/ipython.py index 080b43b591..d31d6e0dfd 100644 --- a/src/calibre/utils/ipython.py +++ b/src/calibre/utils/ipython.py @@ -168,7 +168,8 @@ def ipython(user_ns=None): if not user_ns: user_ns = defns else: - user_ns = defns.update(user_ns) + defns.update(user_ns) + user_ns = defns c = Config() c.InteractiveShellApp.exec_lines = [