Store ipython references in the __builtin__ namespace.
(self)
| 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 |
no outgoing calls