MCPcopy Index your code
hub / github.com/ipython/ipython / _user_ns_changed

Method _user_ns_changed

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

Source from the content-addressed store, hash-verified

240 user_ns = Instance(dict, args=None, allow_none=True)
241 @observe('user_ns')
242 def _user_ns_changed(self, change):
243 if self.shell is not None:
244 self.shell.user_ns = change['new']
245 self.shell.init_user_ns()
246
247 def init_path(self):
248 """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