Show More
@@ -201,7 +201,7 b' class InteractiveShellApp(Configurable):' | |||||
201 | ) |
|
201 | ) | |
202 | shell = Instance('IPython.core.interactiveshell.InteractiveShellABC') |
|
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 | def _user_ns_changed(self, name, old, new): |
|
205 | def _user_ns_changed(self, name, old, new): | |
206 | if self.shell is not None: |
|
206 | if self.shell is not None: | |
207 | self.shell.user_ns = new |
|
207 | self.shell.user_ns = new |
@@ -87,7 +87,7 b' class Kernel(Configurable):' | |||||
87 | if self.shell is not None: |
|
87 | if self.shell is not None: | |
88 | self.shell.user_module = new |
|
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 | def _user_ns_changed(self, name, old, new): |
|
91 | def _user_ns_changed(self, name, old, new): | |
92 | if self.shell is not None: |
|
92 | if self.shell is not None: | |
93 | self.shell.user_ns = new |
|
93 | self.shell.user_ns = new |
General Comments 0
You need to be logged in to leave comments.
Login now