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

Method initialize

IPython/terminal/ipapp.py:306–323  ·  view source on GitHub ↗

Do actions after construct, but before starting the app.

(self, argv=None)

Source from the content-addressed store, hash-verified

304
305 @catch_config_error
306 def initialize(self, argv=None):
307 """Do actions after construct, but before starting the app."""
308 super(TerminalIPythonApp, self).initialize(argv)
309 if self.subapp is not None:
310 # don't bother initializing further, starting subapp
311 return
312 # print self.extra_args
313 if self.extra_args and not self.something_to_run:
314 self.file_to_run = self.extra_args[0]
315 self.init_path()
316 # create the shell
317 self.init_shell()
318 # and draw the banner
319 self.init_banner()
320 # Now a variety of things that happen after the banner is printed.
321 self.init_gui_pylab()
322 self.init_extensions()
323 self.init_code()
324
325 def init_shell(self):
326 """initialize the InteractiveShell instance"""

Callers

nothing calls this directly

Calls 6

init_shellMethod · 0.95
init_bannerMethod · 0.95
init_pathMethod · 0.80
init_gui_pylabMethod · 0.80
init_extensionsMethod · 0.80
init_codeMethod · 0.80

Tested by

no test coverage detected