Show More
@@ -197,6 +197,10 b' class InteractiveShellApp(Configurable):' | |||||
197 | """ |
|
197 | """ | |
198 | ) |
|
198 | ) | |
199 | shell = Instance('IPython.core.interactiveshell.InteractiveShellABC') |
|
199 | shell = Instance('IPython.core.interactiveshell.InteractiveShellABC') | |
|
200 | ||||
|
201 | def __init__(self, user_ns=None, **kwargs): | |||
|
202 | self.user_ns = user_ns | |||
|
203 | super(InteractiveShellApp, self).__init__(**kwargs) | |||
200 |
|
204 | |||
201 | def init_path(self): |
|
205 | def init_path(self): | |
202 | """Add current working directory, '', to sys.path""" |
|
206 | """Add current working directory, '', to sys.path""" |
@@ -334,7 +334,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||||
334 | # so the banner shows *before* all extension loading stuff. |
|
334 | # so the banner shows *before* all extension loading stuff. | |
335 | self.shell = TerminalInteractiveShell.instance(parent=self, |
|
335 | self.shell = TerminalInteractiveShell.instance(parent=self, | |
336 | display_banner=False, profile_dir=self.profile_dir, |
|
336 | display_banner=False, profile_dir=self.profile_dir, | |
337 | ipython_dir=self.ipython_dir) |
|
337 | ipython_dir=self.ipython_dir, user_ns=self.user_ns) | |
338 | self.shell.configurables.append(self) |
|
338 | self.shell.configurables.append(self) | |
339 |
|
339 | |||
340 | def init_banner(self): |
|
340 | def init_banner(self): |
General Comments 0
You need to be logged in to leave comments.
Login now