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

Method init_builtins

IPython/core/interactiveshell.py:828–836  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

826
827
828 def init_builtins(self):
829 # A single, static flag that we set to True. Its presence indicates
830 # that an IPython shell has been created, and we make no attempts at
831 # removing on exit or representing the existence of more than one
832 # IPython at a time.
833 builtin_mod.__dict__['__IPYTHON__'] = True
834 builtin_mod.__dict__['display'] = display
835
836 self.builtin_trap = BuiltinTrap(shell=self)
837
838 @observe('colors')
839 def init_inspector(self, changes=None):

Callers 1

__init__Method · 0.95

Calls 1

BuiltinTrapClass · 0.90

Tested by

no test coverage detected