MCPcopy Create free account
hub / github.com/ipython/ipython / _user_ns_changed

Method _user_ns_changed

IPython/core/shellapp.py:188–191  ·  view source on GitHub ↗
(self, change)

Source from the content-addressed store, hash-verified

186 user_ns = Instance(dict, args=None, allow_none=True)
187 @observe('user_ns')
188 def _user_ns_changed(self, change):
189 if self.shell is not None:
190 self.shell.user_ns = change['new']
191 self.shell.init_user_ns()
192
193 def init_path(self):
194 """Add current working directory, '', to sys.path

Callers

nothing calls this directly

Calls 1

init_user_nsMethod · 0.80

Tested by

no test coverage detected