示例#1
0
 def start_app(self):
     if not getattr(self.master_config.Global, 'ignore_old_config', False):
         check_for_old_config(self.ipython_dir)
     if self.master_config.Global.interact:
         self.log.debug("Starting IPython's mainloop...")
         self.shell.mainloop()
     else:
         self.log.debug("IPython not interactive, start_app is no-op...")
示例#2
0
文件: ipapp.py 项目: vvatsa/ipython
 def start_app(self):
     if not getattr(self.master_config.Global, "ignore_old_config", False):
         check_for_old_config(self.ipython_dir)
     if self.master_config.Global.interact:
         self.log.debug("Starting IPython's mainloop...")
         self.shell.mainloop()
     else:
         self.log.debug("IPython not interactive, start_app is no-op...")
示例#3
0
 def initialize(self, argv=None):
     """Do actions after construct, but before starting the app."""
     super(TerminalIPythonApp, self).initialize(argv)
     if self.subapp is not None:
         # don't bother initializing further, starting subapp
         return
     if not self.ignore_old_config:
         check_for_old_config(self.ipython_dir)
     # print self.extra_args
     if self.extra_args:
         self.file_to_run = self.extra_args[0]
     # create the shell
     self.init_shell()
     # and draw the banner
     self.init_banner()
     # Now a variety of things that happen after the banner is printed.
     self.init_gui_pylab()
     self.init_extensions()
     self.init_code()
示例#4
0
 def initialize(self, argv=None):
     """Do actions after construct, but before starting the app."""
     super(TerminalIPythonApp, self).initialize(argv)
     if self.subapp is not None:
         # don't bother initializing further, starting subapp
         return
     if not self.ignore_old_config:
         check_for_old_config(self.ipython_dir)
     # print self.extra_args
     if self.extra_args and not self.something_to_run:
         self.file_to_run = self.extra_args[0]
     # create the shell
     self.init_shell()
     # and draw the banner
     self.init_banner()
     # Now a variety of things that happen after the banner is printed.
     self.init_gui_pylab()
     self.init_extensions()
     self.init_code()