initialize the InteractiveShell instance
(self)
| 323 | self.init_code() |
| 324 | |
| 325 | def init_shell(self): |
| 326 | """initialize the InteractiveShell instance""" |
| 327 | # Create an InteractiveShell instance. |
| 328 | # shell.display_banner should always be False for the terminal |
| 329 | # based app, because we call shell.show_banner() by hand below |
| 330 | # so the banner shows *before* all extension loading stuff. |
| 331 | self.shell = self.interactive_shell_class.instance(parent=self, |
| 332 | profile_dir=self.profile_dir, |
| 333 | ipython_dir=self.ipython_dir, user_ns=self.user_ns) |
| 334 | self.shell.configurables.append(self) |
| 335 | |
| 336 | def init_banner(self): |
| 337 | """optionally display the banner""" |