##// END OF EJS Templates
Fix passing user_ns to IPython.start_ipython()
Thomas Kluyver -
Show More
@@ -198,6 +198,10 b' class InteractiveShellApp(Configurable):'
198 198 )
199 199 shell = Instance('IPython.core.interactiveshell.InteractiveShellABC')
200 200
201 def __init__(self, user_ns=None, **kwargs):
202 self.user_ns = user_ns
203 super(InteractiveShellApp, self).__init__(**kwargs)
204
201 205 def init_path(self):
202 206 """Add current working directory, '', to sys.path"""
203 207 if sys.path[0] != '':
@@ -334,7 +334,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
334 334 # so the banner shows *before* all extension loading stuff.
335 335 self.shell = TerminalInteractiveShell.instance(parent=self,
336 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 338 self.shell.configurables.append(self)
339 339
340 340 def init_banner(self):
General Comments 0
You need to be logged in to leave comments. Login now