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

Method __init__

IPython/terminal/embed.py:148–165  ·  view source on GitHub ↗
(self, **kw)

Source from the content-addressed store, hash-verified

146 self._call_location_id)
147
148 def __init__(self, **kw):
149 if kw.get('user_global_ns', None) is not None:
150 raise DeprecationWarning(
151 "Key word argument `user_global_ns` has been replaced by `user_module` since IPython 4.0.")
152
153 clid = kw.pop('_init_location_id', None)
154 if not clid:
155 frame = sys._getframe(1)
156 clid = '%s:%s' % (frame.f_code.co_filename, frame.f_lineno)
157 self._init_location_id = clid
158
159 super(InteractiveShellEmbed,self).__init__(**kw)
160
161 # don't use the ipython crash handler so that user exceptions aren't
162 # trapped
163 sys.excepthook = ultratb.FormattedTB(color_scheme=self.colors,
164 mode=self.xmode,
165 call_pdb=self.pdb)
166
167 def init_sys_modules(self):
168 """

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected