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

Method activate

IPython/core/builtin_trap.py:72–77  ·  view source on GitHub ↗

Store ipython references in the __builtin__ namespace.

(self)

Source from the content-addressed store, hash-verified

70 builtin_mod.__dict__[key] = orig
71
72 def activate(self):
73 """Store ipython references in the __builtin__ namespace."""
74
75 add_builtin = self.add_builtin
76 for name, func in self.auto_builtins.items():
77 add_builtin(name, func)
78
79 def deactivate(self):
80 """Remove any builtins which might have been added by add_builtins, or

Callers 3

__enter__Method · 0.95
injectFunction · 0.80
start_ipythonFunction · 0.80

Calls

no outgoing calls

Tested by 1

injectFunction · 0.64