Do actions after construct, but before starting the app.
(self, argv=None)
| 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""" |
nothing calls this directly
no test coverage detected