##// END OF EJS Templates
Use Instance trait for user_ns instead of Dict....
Thomas Kluyver -
Show More
@@ -201,7 +201,7 b' class InteractiveShellApp(Configurable):'
201 201 )
202 202 shell = Instance('IPython.core.interactiveshell.InteractiveShellABC')
203 203
204 user_ns = Dict(default_value=None)
204 user_ns = Instance(dict, args=None, allow_none=True)
205 205 def _user_ns_changed(self, name, old, new):
206 206 if self.shell is not None:
207 207 self.shell.user_ns = new
@@ -87,7 +87,7 b' class Kernel(Configurable):'
87 87 if self.shell is not None:
88 88 self.shell.user_module = new
89 89
90 user_ns = Dict(default_value=None)
90 user_ns = Instance(dict, args=None, allow_none=True)
91 91 def _user_ns_changed(self, name, old, new):
92 92 if self.shell is not None:
93 93 self.shell.user_ns = new
General Comments 0
You need to be logged in to leave comments. Login now