Do actions after construct, but before starting the app.
(self, argv=None)
| 273 | |
| 274 | @catch_config_error |
| 275 | def initialize(self, argv=None): |
| 276 | """Do actions after construct, but before starting the app.""" |
| 277 | super(TerminalIPythonApp, self).initialize(argv) |
| 278 | if self.subapp is not None: |
| 279 | # don't bother initializing further, starting subapp |
| 280 | return |
| 281 | # print(self.extra_args) |
| 282 | if self.extra_args and not self.something_to_run: |
| 283 | self.file_to_run = self.extra_args[0] |
| 284 | self.init_path() |
| 285 | # create the shell |
| 286 | self.init_shell() |
| 287 | # and draw the banner |
| 288 | self.init_banner() |
| 289 | # Now a variety of things that happen after the banner is printed. |
| 290 | self.init_gui_pylab() |
| 291 | self.init_extensions() |
| 292 | self.init_code() |
| 293 | |
| 294 | def init_shell(self): |
| 295 | """initialize the InteractiveShell instance""" |