initialize the InteractiveShell instance
(self)
| 292 | self.init_code() |
| 293 | |
| 294 | def init_shell(self): |
| 295 | """initialize the InteractiveShell instance""" |
| 296 | # Create an InteractiveShell instance. |
| 297 | # shell.display_banner should always be False for the terminal |
| 298 | # based app, because we call shell.show_banner() by hand below |
| 299 | # so the banner shows *before* all extension loading stuff. |
| 300 | self.shell = self.interactive_shell_class.instance(parent=self, |
| 301 | profile_dir=self.profile_dir, |
| 302 | ipython_dir=self.ipython_dir, user_ns=self.user_ns) |
| 303 | self.shell.configurables.append(self) |
| 304 | |
| 305 | def init_banner(self): |
| 306 | """optionally display the banner""" |