From 69c13a1fb56cbc282fa748c1fac8ec4e644a7f70 2011-11-17 20:54:52 From: MinRK Date: 2011-11-17 20:54:52 Subject: [PATCH] include parent Application in InteractiveShell.configurables for use in %config magic --- diff --git a/IPython/frontend/terminal/ipapp.py b/IPython/frontend/terminal/ipapp.py index 22b5ea4..937bdfc 100755 --- a/IPython/frontend/terminal/ipapp.py +++ b/IPython/frontend/terminal/ipapp.py @@ -320,6 +320,7 @@ class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): self.shell = TerminalInteractiveShell.instance(config=self.config, display_banner=False, profile_dir=self.profile_dir, ipython_dir=self.ipython_dir) + self.shell.configurables.append(self) def init_banner(self): """optionally display the banner""" diff --git a/IPython/zmq/ipkernel.py b/IPython/zmq/ipkernel.py index 87c7a3a..a647321 100755 --- a/IPython/zmq/ipkernel.py +++ b/IPython/zmq/ipkernel.py @@ -780,6 +780,7 @@ class IPKernelApp(KernelApp, InteractiveShellApp): def init_shell(self): self.shell = self.kernel.shell + self.shell.configurables.append(self) #-----------------------------------------------------------------------------