From 200c756cb1fa458696c4d612475fac0b25663403 2008-03-09 18:20:23 From: Ville M. Vainio Date: 2008-03-09 18:20:23 Subject: [PATCH] with -pylab_import_all, put all names to user_config_ns in order to not clutter %whos --- diff --git a/IPython/Shell.py b/IPython/Shell.py index 1bff3fc..876359a 100644 --- a/IPython/Shell.py +++ b/IPython/Shell.py @@ -1051,7 +1051,9 @@ def _load_pylab(user_ns): ip = IPython.ipapi.get() if ip.options.pylab_import_all: - exec "from matplotlib.pylab import *" in user_ns + ip.ex("from matplotlib.pylab import *") + ip.IP.user_config_ns.update(ip.user_ns) + class IPShellMatplotlib(IPShell): """Subclass IPShell with MatplotlibShell as the internal shell.